Advertisement

MS Visual C++ Debuging Levels

Started by December 26, 2000 10:05 PM
3 comments, last by Blade Runner 23 years, 10 months ago
What level is the best level to use when compiling source code a level 1* debug, level 2 debug, level 3 debug, or level 4 debug which i is the most sensetive one of them all to warnings? If your confused about what I'm talking about then go to the menu bar click Project, go down to Settings, move the tabs over until you see a tab with the name C/C++ at the top of it, and go to the drop down box with the name 'Warning level:' above it. Edited by - Blade Runner on 12/26/00 11:54:30 PM
--------------------------I shall thrash his bloody head in, cut it from upon his shoulders, and as his blood flows effortlessly down my blade, I shall taste it's sweetness. Blade Runner’s Entertainment Nothing much right now...
What do you mean by "best"? The level is fully explained in the docs. It is just how ''sensitive'' it is.

Advertisement
Sorry, i didn''t think about that man i was out of it yesterday; well i need to go install the MSDN files now which i didn''t install from the beginning.
--------------------------I shall thrash his bloody head in, cut it from upon his shoulders, and as his blood flows effortlessly down my blade, I shall taste it's sweetness. Blade Runner’s Entertainment Nothing much right now...
I really recommend level 3 or 4. Some of the warnings at level4 are tough, but you can remove a lot by making explicit casts and it will help you find bugs you wouldn''t have otherwise.

If there is something you absolutely can''t get rid of in the warnings, you can use:
#pragma warning( disable : xxxx )
...
#pragma warning( default : xxxx )

around the offending code block (xxxx being the warning number) - useful for MS headers such as mmsystem.h


~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
~~~Cheers!Brett PorterPortaLib3D : A portable 3D game/demo libary for OpenGLCommunity Service Announcement: Read How to ask questions the smart way before posting!
THanks.
--------------------------I shall thrash his bloody head in, cut it from upon his shoulders, and as his blood flows effortlessly down my blade, I shall taste it's sweetness. Blade Runner’s Entertainment Nothing much right now...

This topic is closed to new replies.

Advertisement