| |||
| 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:
cmdSpecifies the command name followed by one or more debugger commands.
Enter each debugger command on a new line and terminate the define command by
using the end command.
Existing built in commands cannot be redefined.