Checking Varialbes While Debugging

ThePentiumGuy

Well-known member
Joined
May 21, 2003
Messages
1,113
Location
Boston, Massachusetts
hey
how do you Check varialbes while Debugging.. without using a messagebox :D

i know theres something to do with one of the little tabs on the bottom.. but i cant figure out which one.. i went to the command tab and typed in Console.WriteLine(myvariable) and it said "This type of operation cannot be performed at thsi time" or something like that

also.. --> how do you do breakpoints and stuff within your program so you can see its flow of execution
 
To set a break point just go to the line of code you would like the execution to stop on and click just to the left of the code line.

Once the program stops execution you can hover your cursor over any variable and it will tell you what the current value is.

To remove the break point just click on the round circle that indicates a break.
 
Back
Top