The Source window displays the source code for the program you are debugging. You can perform most debugger actions from the Source window. If your program was compiled with debugging information, you have three choices as to how to view it: by its source code, its disassembled machine code, or a combination of the two.
You can either step through or run your program from the Source window. A step command lets you execute your program, usually one line at a time. Step commands are useful for monitoring logic flow, and for seeing how variables, storage, registers, or the stack are affected by each line that you step through. The Run command runs your program up to the next breakpoint, or until an exception that is not handled occurs, or until the program ends.
Use the Source window to view the progress of your program as you debug it. The Source window displays your program's source code, disassembled code, or both, and updates the display after each step or run command. You can set or clear breakpoints, add variables or expressions to a monitor, and more.
![]()
Change views in a Source window
View different source files
Set and clear breakpoints
Add expressions and variables to
a monitor
Run, step through, start and stop
your program
Open other windows and monitors