The debug command prints the name and arguments of the program being debugged.
debug
To begin debugging a program with no process or core:
debug program
To begin debugging a program with corefile core:
debug -c core program -or- debug program core
To begin debugging a program with process ID pid:
debug -p pid program -or- debug program pid
To force the loading of a corefile; even if it doesn't match:
debug -f ...
To retain all display, trace, when, and stop commands. If no -r option is given, an implicit delete all and undelete() is performed.
debug -r
To start debugging a program even if the program name begins with a dash:
debug [options] -- program