| |||
Home > DS-5 Debugger commands > DS-5 Debugger commands listed in alphabetical order > define |
This command enables you to derive new user-defined commands
from existing commands. User-defined commands accept arguments separated
by whitespace. You can use the arguments in expressions by using $arg0
...$arg
,
for example:n
print 4+$arg0 # add 4 to the first argument and print result
define cmd
...
end
Where:
cmd
Specifies the command name followed by one or more debugger commands.
Enter each debbuger command on a new line and terminate the define
command by
using the end
command.
Be aware that existing commands can be redefined if you specify
a command name
that exists
already.cmd