Debug Menu


Reset (SHIFT+F5)
The Reset command performs a Reset of the execution target. If a program is executing when the command is issued, execution will be stopped. If the user is in source level mode, the program will, after the Reset is completed, execute until it reaches the first source statement. After the Reset is completed, all information in all windows are updated.

Go (F5)
The Go command in the Debug menu starts (or resumes) execution of the program. The program will be executed until it is stopped (user action) or a breakpoint is encountered. The Go command is only available when the execution is stopped.

Break (CTRL-F5)
The Break command in the Debug menu stops the execution of the program. When the execution is stopped, all information in all windows are updated. The Break command is only available when a program is executing.

Trace Into (F11)
The Trace Into command in the Debug menu executes one instruction. When AVR Studio is in source mode, one source level instruction is executed, and when in disassembly level, one assembly level instruction is executed. After the Trace Into is completed, all information in all windows are updated.

Step Over (F10)
The Step Over command in the Debug menu executes one instruction. If the instruction contains a function call/subroutine call, the function/subroutine is executed as well. If a user breakpoint is encountered during Step Over, execution is halted. After the Step Over is completed, all information in all windows are updated.

Step Out (SHIFT+F11)
The Step Out command in the Debug menu executes until the current function has completed. If a user breakpoint is encountered during Step Over, execution is halted. If a Step Out command is issued when the program is on the top level, the program will continue executing until it reaches a breakpoint or it is stopped by the user. After the Step Out command is completed, all information in all windows are updated.

Run To Cursor (F7)
The Run to Cursor command in the Debug menu executes until the program has reached the instruction indicated by the cursor in the Source window. If a user breakpoint is encountered during a Run to Cursor command, execution is not halted. If the instruction indicated by the cursor is never reached, the program executes until it is stopped by the user. After the Run to Cursor command is completed, all information in all windows are updated. As the Run To Cursor instruction is dependent on a cursor position, it is only available when the Source Window is active.

Multi Trace Into ()
The Multi Trace Into command in the Debug menu executes a preset number of Trace Into instructions. When AVR Studio is in source mode, the requested number of source level instruction are executed, and when in disassembly level, the requested number of assembly level instruction is executed. The number of Trace Into instructions is preset in the Debug Options. Select in the Debug Options whether to update all windows after the last(default) or after each Trace Into instruction. Multi Trace Into run until it reaches the preset number of Trace Into instructions, it is stopped (user action) or a breakpoint is encountered(optional).

Auto Trace Into ()
The Auto Trace Into command in the Debug menu repeatedly executes Trace Into instructions. When AVR Studio is in source mode, one source level instruction is executed, and when in disassembly level, one assembly level instruction is executed. After each Trace Into is completed, all information in all windows are updated. The delay between each Trace Into instruction is selected from the Debug Options. Auto Trace Into run until it is stopped (user action) or a breakpoint is encountered(optional).

Debug Options
Opens the Debug Options Dialog. The debug options are described in detail in it's own page.
 

See Also
Debug Control
Debug Platforms
Debug Options
AVR Studio User's Guide