Reputation: 312
I'm making a program with C++ and Lua. When I run the program in Release mode OUTSIDE of the debugger, the program doesn't behave as expected (it doesn't crash, it just doesn't do what I thought it would). When I start it from the debugger, it behaves just fine.
I understand that there are differences in the way a program will be run in a debugger vs outside of one (Heap differences? Some uninitialized variables?). Is it possible to configure the debugger so it will run the Release version of my program with as few changes as possible, so I can try to make this problem happen while debugging?
Upvotes: 1
Views: 907
Reputation: 30832
Here's a couple of things to try:
Upvotes: 2
Reputation: 3859
Not sure about making the debugger act like a release build but you can simulate them somewhat.
Depends on what exactly the differences in behaviour are.
Are all the variables initialised? The debugger does that. You can also use asm { int 3 } to break in release mode.
Upvotes: 0