z*y 发帖数: 1311 | 1 如何从十六进制指令地址找回到对应的源程序语句位置?谢谢。
起因:程序crash后想找到源程序的出错位置,程序是用C++写的在Visual Studio上编
译,然后拷到另一台机器上运行,出错后只有机器指令的地址,而不是进入源程序的
debug模式 |
s******e 发帖数: 431 | 2 There is a map file. You can check the map file to find out which function
crashed. You can google it for more details. |
yv 发帖数: 16 | 3 set break point and press ctrl+F11 may help
【在 z*y 的大作中提到】 : 如何从十六进制指令地址找回到对应的源程序语句位置?谢谢。 : 起因:程序crash后想找到源程序的出错位置,程序是用C++写的在Visual Studio上编 : 译,然后拷到另一台机器上运行,出错后只有机器指令的地址,而不是进入源程序的 : debug模式
|
K*****n 发帖数: 65 | |
s******n 发帖数: 21 | 5 I think there are 2 ways you can consider:
1) Dr.Watson + map files
2) minidump + pdb files
In general, minidump is easlier to use and offers you more reialble
information. The downside is you have to change your code to generate the
dump and it's not a easy job to keep all your versioned pdb files especially
when you have lot of modules.
IMHO, tracing and logging is your best friend.
Happy debugging. |