How to view all variables when debugging in Visual Studio 2012

Is there a way to watch all variables when debugging in Visual Studio 2012, how can I do this in IntelliJ Idea 12? I have a window with all the variables (both global and local) when debugging in Idea, and I want the same in VS 2012 (the Autos window is not enough). Help is much appreciated. EDIT: all variables mean variables that have already been declared in the code, for example:

Class Example Dim i as Integer Sub test() Dim a as String Dim b as Double End Sub End Class 

When I enter the test () Autos window, i is no longer displayed.

+6
source share
2 answers

Lots of options:

  • Car Seats During debugging, you can turn on "Auto" , which will show you the values ​​for each member of your class. Go to Debug-> Windows-> Autos so that it appears.

  • Locals During debugging, you can enable Locals , which will show you all the variables in the current frame of the stack. Go to the Debug-> Windows-> Locals menu so that it appears.

  • Clock Although it’s a little manual, you can also use “Watch” , you can drag any variable into this window or right-click and then add to the view . Go to Debug-> Windows-> Watch menu so that it appears. The note. You can enable more than one viewport :).

  • Mouse over Finally, you can move the variable with the mouse, and you will see the value of the variable.

+21
source

You can move the mouse pointer over the variable and wait 1 second until the “mini” window appears. What you can see depends on the code in which your breakpoint exists.

Also to display the variable window: http://msdn.microsoft.com/en-us/library/bhawk8xd.aspx

0
source

Source: https://habr.com/ru/post/959375/


All Articles