MDB Reference
The Microchip Debugger (MDB) supports a set of commands that enable you to load, execute, and test projects from the command line. Below is a summary of the available commands. Click on a command to see additional details and examples.
Command | Description |
backtrace | Prints a backrace of the entire stack: one line per frame for all frames in the stack |
break (address) | Sets an address breakpoint at the specified address |
break (line) | Sets a line breakpoint at the specified line number |
continue | Resumes program being debugged, after breakpoints |
delete | Deletes the specified breakpoint or all breakpoints if the argument is omitted |
device | Specifies the target device part number |
halt | Halts (pauses) the program being debugged |
help | Prints a list of commands |
hwtool | Sets the debug tool |
next | Steps the program, proceeding through subroutine calls as if they were one instruction. (Step Over) |
Displays the value of a variable | |
program | Programs device memory with the specified image file (*.hex, *.cof, or *.elf). Used for loading the simulator too. |
quit | Exits the debugger |
reset | Resets the program and optionally performs a hardware reset |
run | Starts the program to be debugged |
sleep | Makes the current script processor sleep until duration (in milliseconds) elapses |
step | Steps the program until it reaches a different source line (Step Into) |
stim | Specifies a SCL stimulus file to use |
upload | Uploads an executable image to MDB memory |
wait | Makes the current script processor wait until the debugger halts before processing the next command |
watch | Sets a data breakpoint at the specified address |
x | Examines memory in any of several formats, independently of your program data types |