Vs2010调试其它程序

在“Project->Configuraton->Configuration Properties->Debugging”中如置:
Command:c:\windows\system32\notepad.exe;     表示调试开始时启动的程序。
Command Arguments:c:\ New Text Document.txt;  被调试程序调用的文件。

按上述设置知道后只要按F5调试就能自动调用notepad.exe程序(由Command内容指定),并使用它打开一个指定的文件New Text Document.txt(由Command Arguments指定)。因此只要把notepad.exe替换成你想调试的程序,就可以使调试器一开始就跟踪程序的动作。

调试其它文件需要相应的.pdb文件放到能被检索的符号文件夹中。

你可能感兴趣的:(Vs2010调试其它程序)