Currently, I’m using Microsoft Visual Studio 2010, but I have a problem:
I cannot view the process of my code, arrays and etc. in the Local Window. When I run the program I’m not able to see anything in there, it only displays something if the program crashes.
Please I need to fix that. I really want to view the process and logic behind my code.
As said above the Locals Window is only updated when the program is stopped by the debugger. You can do that by using a breakpoint, which will make sure the program stops where you need it to, or by pressing the “Break All” button (Ctrl+Alt+Break).
To insert a break point you need to click to the side of the desired line of code (as shown here). The code in that example is C++ but placing breakpoints is the same.