Table of Contents

MAME Debugger General Commands


help


Syntax: help <topic>

Get help on a particular topic.

do


Syntax: do <expression>

The do command simply evaluates the given <expression>. This is typically used to set or modify variables.

Examples:

The word do is optional, thus

symlist


Syntax: symlist [<cpunum>]

Lists registered symbols. If <cpunum> is not specified, then symbols in the global symbol table are displayed; otherwise, the symbols for <cpunum>'s specific CPU are displayed. Symbols are listed alphabetically. Read-only symbols are flagged with an asterisk.

Examples:

softreset


Syntax: softreset

Executes a soft reset.

Examples:

hardreset


Syntax: hardreset

Executes a hard reset.

Examples:

print


Syntax: print <item>[,…]

The print command prints the results of one or more expressions to the debugger console as hexadecimal values.

Examples:

printf


Syntax: printf <format>[,<item>[,…]]

The printf command performs a C-style printf to the debugger console. Only a very limited set of formatting options are available:

All remaining formatting options are ignored. Use %% together to output a % character. Multiple lines can be printed by embedding a \n in the text.

Examples:

logerror


Syntax: logerror <format>[,<item>[,…]]

The logerror command performs a C-style printf to the error log. Only a very limited set of formatting options are available:

All remaining formatting options are ignored. Use two % together to output a % character. Multiple lines can be printed by embedding a \n in the text.

Examples:

tracelog


Syntax: tracelog <format>[,<item>[,…]]

The tracelog command performs a C-style printf and routes the output to the currently open trace file (see the trace command for details). If no file is currently open, tracelog does nothing. Only a very limited set of formatting options are available. See the printf help for details.

Examples:

snap


Syntax: snap [[<filename>], <scrnum>]

The snap command takes a snapshot of the current video display and saves it to the configured snapshot directory. If <filename> is specified explicitly, a single screenshot for <scrnum> is saved under the requested filename. If <filename> is omitted, all screens are saved using the same default rules as the “save snapshot” key in MAME proper.

Examples:

source


Syntax: source <filename>

The source command reads in a set of debugger commands from a file and executes them one by one, similar to a batch file.

Examples:

quit


Syntax: quit

The quit command exits MESS immediately.