Debug a built binary file with VS and *.pdb file

本文介绍如何使用Visual Studio 2005作为强大的调试工具来调试二进制文件(exe或dll)。只需拥有相应的*.pdb文件及源代码即可进行调试操作。文章详细说明了六个步骤:运行目标、附加调试器到进程、加载所需符号、手动加载符号文件、打开源文件并设置断点。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  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.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值