2.2 Quitting the BASH debugger

An interrupt (often C-c) does not exit from the BASH debugger, but rather terminates the action of any the BASH debugger command that is in progress and returns to the BASH debugger command level. Inside a debugger command interpreter, use quit command (see Quitting the BASH debugger).

There way to terminate the debugger is to use the kill command. This does more forceful kill -9. It can be used in cases where quit doesn’t work.