Debugging HL2 - VS2003

  • Thread starter Thread starter SuperflyCol
  • Start date Start date
S

SuperflyCol

Guest
Hi all,
don't know if everyone else already knows this but thought i'd post it anyway. It is possible to use the Visual Studio debugger with Halflife 2 and it's really easy to do.

1) start vs2003. build your mod in debug mode. copy dlls and whatever to correct directories. set your breakpoints

2) leave vs2003 running and run hl2 and set it to really low settings. change it to the lowest resolution and set it to windowed mode. Unless you're working on a graphical change you probably don't care about it looking good yet anyway.

3) alt-tab to VS2003. go to tools/debug processes (ctrl-alt-p). select HL2 and attach to it.

4) start playing and attempt whatever functionality you wish to test. VS2003 should break when you hit the breakpoints.

there ya go, hope this helps people. If this is common knowledge feel free to delete this post.
 
Back
Top