In my previous blog (http://blog.joycode.com/jiangsheng/archive/2005/06/08/53126.aspx) I mentioned how to use windbg to debug the Visual C ++ program. However, switching from ide To command line is troublesome. To be lazy, you can add windbg to the tool menu of Visual Studio, in this way, you can directly start windbg from IDE for debugging. The settings on the configuration page of the external tool are as follows:
Title: windbg command line: C: \ masm32 \ debug \ windbg.exe, if the installation is downloaded separately, the command line may be like this: "C: \ Program Files \ debugging tools for Windows \ windbg.exe") parameter: -Ee C ++-g-I "$ (targetdir)"-y "$ (targetdir)"-QY-logo-qsy-sdce-WF "$ (projectfilename ). wew "" $ (targetpath) "(when the command line is too long, windbg will not work normally. As for the meaning of these parameters, it is better to go back to the next debug tools for Windows and install them .) Initial Directory: $ (projectdir) Of course, the debugging code is not limited to C ++. In fact, I mainly use windbg to debug assembly code.