How to use debug in MS C++?
I have a MS visual C++ software. How can I use the debug without going through assembly code when I want to use debug in C++ mode?
I would really appricate any suggestions.
Ken
Desktop
I have a MS visual C++ software. How can I use the debug without going through assembly code when I want to use debug in C++ mode?
I would really appricate any suggestions.
Ken
by louis.perna
Hello,
Are you sure e you are setup to compile to debug mode and not release
Check under Build/Set Active Configuration to verify that you are
compiling for debug and not release. You can review your compiler settings
by opening Project/Settings. The dialog it brings up with allow you to review the compiler settings for all configurations. Under debug you should
see an option /Od. That disables optimization, under release you will see
an option /O2 (by default unless you've changed it)
If you don't have a debug configuration you'll need to create one using
Build/Configurations/Add and then recompile all your code for debugging
Once you've compiled your code for debugging you should be able to
put a breakpoint on any source line and have the executable stop there.
Hope that helps,
If you've still having trouble you can email me directly at
louis.perna@isarinc.com
by ken_charoen
by rorywinston
Also remember to have the appropriate debug symbol files installed, so the assembly references become much clearer to wade through
Rory
by ken_charoen
by ken_charoen
This discussion is closed to new replies.
Sort by Trending