Visual Studio 05 can be used as a powerful debug tool, and you may debug a binary file (exe or dll) as long as you have its corresponding *.pdb file and source code. You do not even have to create a VS project or solution.
Here is the steps:
1. Run the debug target first. 2. Attach VS2005 debugger to the process. (tools – Attach to process) 3. When the target is selected, the VS load all the needed symbols automatically. 4. In the modules window(debug – windows-- modules), right click the target and choose “load symbols”, and choose the corresponding *.pdb file. 5. Open the source file, *.cpp or *.c, and add the break point. 6. Then you may debug.
本文介绍如何使用Visual Studio 2005作为强大的调试工具来调试二进制文件(exe或dll)。只需拥有相应的*.pdb文件及源代码即可进行调试操作。文章详细说明了六个步骤:运行目标、附加调试器到进程、加载所需符号、手动加载符号文件、打开源文件并设置断点。
2155

被折叠的 条评论
为什么被折叠?



