We can exit from the debugger anytime by typing the exit or quit or q command. The debugger will give the warning that you are running a program and to press y if you really want to quit. The following is the list of options used for exiting from the debugger:
Let's quit from our running debugger session of the calc.awk program using the exit command as follows:
gawk> quitThe program is running. Exit anyway (y/n)? y
We can print a list of all of the GAWK debugger commands with a brief description of their usage using the help or h command.