The blog continues at suszter.com/ReversingOnWindows

May 12, 2012

Minimum set up to use Windbg from Visual Studio

Below is an example to set up Windbg in Visual C++ 2010 Express.

Select Tools, then select External Tools... in Visual C++. Click on Add and provide the followings.
Title &Windbg
Command C:\Program Files (x86)\Debugging Tools for Windows (x86)\windbg.exe
Arguments -srcpath $(ProjectDir) $(TargetPath)
Initial directory $(TargetDir)
Save the configuration and test if it works. Open a project that builds an executable file. Select Tools, then select Windbg to start the debugger. In the command window type .open example.cpp to load the source code. The source window should pop up with the source file in it. Move the cursor in the source window and press F9 to place a breakpoint.
  This blog is written and maintained by Attila Suszter. Read in Feed Reader.