Debugger window?

  • Thread starter Thread starter Angel
  • Start date Start date
A

Angel

Visual Basic 6 has a debugger window where you can see the value of a
variable during runtime with "debug.print". Does C# have something like
this?

Thanks.
 
Hi Angel,

You can use a couple of windows to see a value of a variable during runtime,
you can use either a watch , auto or locals windows.
take a look at MSDN to see the differences among them.


another couple of options are placing the mouse over the variable in
question, or using right click and select QuickWatch which is a similar
windows that the regular watch.

cheers,
 
In addition to what Ignacio stated, you can also use the "Immediate window"
(Immediate window in the menu, but it's titled "Command Window") while in
debug mode to do something like

? excep.Message.ToLower()

which (assuming an exception variable "excep" was in scope) would print out
the exception's message property in lower case.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top