Others Commands

To display information about the others commands available in MDB, type help others. The following table provides additional information for these commands.

Table 1. Others Commands
Command Description
Echo Echo is a command typically used in command files and batch files to output status text to the screen or a file. The echo command will print text surrounded by /* */. Use \n in the text to print a new line.

Command format:

echo text

Example:

echo Hello World

Result:

/*Hello World*/

This command prints text only. To print variables or other information, use commands such as print, info, list, etc.
Help help others – Prints a list of commands.
Quit quit - Exits the debugger.
Set The tool property name and value are from the project properties that are selected when creating the project in MPLAB X IDE. IMPORTANT: The Set command, including the tool property options, must be executed before the Hwtool command is issued, otherwise the changes to the tool properties will be ignored.

Command format:

Set tool-property-name value

Example:

Set programoptions.eraseb4program true

Refer to Table 1 for other tool properties options that can used with the Set command. Refer to Table 1 for simulator options that can be used with the Set command.
Sleep Makes the current script processor sleep until specified milliseconds have elapsed.

Command format:

Sleep milliseconds

Example:

Sleep 10
Wait The Wait command makes the current script processor wait until the debugger halts before processing the next command.

Command format:

Wait

Wait Milliseconds makes the processor process the next command if the debugger does not halt and milliseconds have elapsed.

Command format:

Wait [milliseconds]
cd This command changes the directory that you are currently working in to the directory you designate.

Command format:

cd [directory]
info Prints a table of all breakpoints that have been set and not deleted.

Optional argument n means “print information only” about the specified breakpoint.

For each breakpoint the following columns are printed:

  • Breakpoint Numbers
  • Enabled or Disabled: Enabled breakpoints are marked with ‘y’ . Disabled breakpoints are marked with ‘n’
  • Address - Where the breakpoint is in your program, as a memory address.
  • What - Where the breakpoint is in the source for your program: as a file and line number.

Command format:

info breakpoints [n]

info break [n]

list\ The list command prints (displays) the source code for the current PC location, or a different file, if specified.

The list command displays lines from a source file.

By default, 10 lines are displayed.

list - displays 10 lines (5 above, 5 below) around the current line

list linenum - displays 10 lines around a given line

list first, - displays 10 lines from first line specified

list ,last

displays 10 lines up to last line specified

list first,last - displays all lines from the first to the last line specified

list - - displays 10 previous lines from the last output

list + - displays 10 more lines from the last output

list function - displays 10 lines around the given function

list file:linenum - displays 10 lines around the given line in a given file

list file:function - displays 10 lines around the given function in a given file

set system.listsize count - changes the number of lines shown

Using 0 or -1 means unlimited list size.

pwd The pwd command displays the current working directory.

Command format:

pwd