Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted

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

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
  • Leaders
Posted
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.
[sIGPIC]e[/sIGPIC]
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...