Vijay
Vijay

Reputation: 2067

C++ debug release version

Very 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.

Upvotes: 0

Views: 336

Answers (3)

ks1322
ks1322

Reputation: 35845

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.

Upvotes: 0

Biggles
Biggles

Reputation: 1345

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.

Upvotes: 0

Alexandre C.
Alexandre C.

Reputation: 56996

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.

Upvotes: 4

Related Questions