Seeing Variable values

realolman

Regular
Joined
Feb 5, 2005
Messages
67
I know i can insert breakpoints and when they fire I can hover the cursor over Variables and see their values.

I don't want it to stop every iteration, and the logic to stop execution only when I want it, seems about as difficult as the program itself.

If I pause it myself , I don't know how to see the value of any variables.
Is there a way to see the value of variables when I pause it myself.

I'm sure it's just one of the large number of things I don't know.

thanks
 
In Visual Studio you can go to the Debug menu to turn on the Locals or Autos windows - those will help with seeing variables. There's also the watch window, but I like the other two better.

You can also right click a breakpoint to set breakpoint properties. From there you can have the breakpoint only hit on a condition, on a "hit count" (like >= 5 times the breakpoint is hit, etc.), and more.

-ner
 
If you click the pause button, it is common that when you break into the debugger no code is running. You can't look at the values within a class because VS doesn't know which instance of your class to show values for (even if there is only one). It would be nice if there was a roots debug window to get access to variables in your forms and such, but as far as I know, there is no such feature.
 
Thanks... I didn't know you could "condition" breakpoints. I'm sure I will use that.

I wish I could just pause it and then hover the cursor while following through the lines of code. I was hoping someone would tell me how to do that, but apparently Marble Eater has informed me you can't.

Darn

Now why couldn't it be made to do that, with the last state of the variables?

Another unrelated question... How come you gotta use such a goofball derivision for an inverse cosine.etc. ...instead of cos^-1 ...like a calculator

thanks
 
Back
Top