петак, 6. јануар 2012.

Debugging C++ Using Visual Studio 2005/2008, Part 3: Using Breakpoints Effectively

by Patrick Mancier

If you go to the Breakpoints window you will see that there is are columns displayed called 'Condition' and 'Hit Counts'. These can be very powerful mechanisms for debugging tricky code. There are a series of mechanisms here that can be used to debug the code. To see these choices, select the breakpoint box and right click to see the menu.





Location

This is an obvious one and usually is set by clicking on the far left line of the code that the programmer wants to break on.

Condition

This checks to see if a specific expression is true or has changed. It does not check specific values other than as a Boolean.



View the Original article

Нема коментара:

Постави коментар