quit[!] [unconditionally] [exit-code]
Gently exit the debugger and debugged program.
The program being debugged is exited via exit() which runs the Kernel at_exit() finalizers. If a return code is given, that is the return code passed to exit() — presumably the return code that will be passed back to the OS. If no exit code is given, 0 is used.
quit # quit; prompt if we are interactive quit unconditionally # quit without prompting quit! # same as above quit 0 # same as "quit" quit! 1 # unconditional quit setting exit code 1