开发者

C++ debug release version

Ve开发者_StackOverflow中文版ry basic question. I want to debug release version of my exe. My debug version is working fine. But release version crashing as usual.

Any tool or debugger available for this would be a great help.


You can still enable debug information in release mode, and use a debugger as usual. Nothing particular here, except that the order of instructions will sometimes look weird when debugging due to optimizations.

Good luck, debugging release-mode-only bugs is tedious.


I'd recommend you adding some kind of logging system or trace points to locate the source of crash. The debugger can trick you when debugging release. You can also elevate the warning level of your compiler to see some usual suspects such as use of unitialized variables.


I recommend you to run exe under some memory debugger, such as Rational Purify or BoundsChecker. It will spot memory related bugs in your code, if any.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜