DEBUG(1spp)
NAME
debug − enter remote debugging mode
SYNOPSIS
debug [ -r ] console_device
DESCRIPTION
Debug cause the debug monitor to enter a mode where it expects remote debugging requests via the serial port indicated by console_device. Currently, the UMIPS-BSD symbolic debugger "dbx" can communicate with dbgmon via this protocol. The protocol spoken via the debug command is a machine to machine protocol and thus the debug command is useful only for establishing communication with remote debuggers.
Debug mode may be exited by entering a control-z to the console of the system running dbgmon. Dbgmon will re-enter command mode and system state that may not be examined remotely (e.g. tlb contents) can be displayed. Debug mode may be resumed by using the debug command with the -r flag. The -r flag causes dbgmon to re-enter debug mode without reset its protocol sequence counters. If you intend to resume debug mode with a remote debugger, debug mode should only be exited via a control-z when the client process is stopped and the remote debugger is waiting for command input.
Debug mode may be aborted at any time with a control-c.