Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Viewing variable values at runtime in VisualStudio

Is there any tool I can use to view the values of variables live as the code executes in VS?

Right now I can see them only when I keep a breakpoint.But,the problem is that the code works perfectly fine when I keep a breakpoint.it messes up only when it runs fast.

Any help would be appreciated.

Thanks

like image 883
Josh Avatar asked Jul 20 '10 09:07

Josh


1 Answers

You can only view variables when you have a breakpoint, however you could just manually write the variable values to the Visual Studios Output window:

System.Diagnostics.Debug.WriteLine(variable);
like image 55
djdd87 Avatar answered Oct 10 '22 23:10

djdd87