General discussion

Locked

How to use debug in MS C++?

By ken_charoen ·
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

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

How to use debug in MS C++?

by louis.perna In reply to How to use debug in MS C+ ...

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

Collapse -

How to use debug in MS C++?

by ken_charoen In reply to How to use debug in MS C+ ...

The question was auto-closed by TechRepublic

Collapse -

How to use debug in MS C++?

by rorywinston In reply to How to use debug in MS C+ ...

Also remember to have the appropriate debug symbol files installed, so the assembly references become much clearer to wade through

Rory

Collapse -

How to use debug in MS C++?

by ken_charoen In reply to How to use debug in MS C+ ...

The question was auto-closed by TechRepublic

Collapse -

How to use debug in MS C++?

by ken_charoen In reply to How to use debug in MS C+ ...

This question was auto closed due to inactivity

Back to Desktop Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums