In the Debug view, each thread in your program is displayed as a node in the tree. When program execution stops, by default, the node for the stopping thread automatically expands to show its stack frame(s). If you manually expand other threads, these threads will automatically expand the next time the program suspends.
When program execution is suspended, the source for the selected stack frame opens in the editor, highlighting the source line that the program is about to execute.
You can perform these basic debug actions in the Debug view:
When a thread is suspended, there are several step operations you can use to step through the execution of the program line-by-line. While performing a step operation, if a breakpoint or exception is encountered, execution suspends at the breakpoint or exception, and the step operation ends. You can use step commands to step through your program a single instruction or location at a time.
The following step commands are available: