pub enum Terminate {}
Expand description
The terminate
request is sent from the client to the debug adapter in order to shut down the debuggee gracefully. Clients should only call this request if the capability supportsTerminateRequest
is true.
Typically a debug adapter implements terminate
by sending a software signal which the debuggee intercepts in order to clean things up properly before terminating itself.
Please note that this request does not directly affect the state of the debug session: if the debuggee decides to veto the graceful shutdown for any reason by not terminating itself, then the debug session just continues.
Clients can surface the terminate
request as an explicit command or they can integrate it into a two stage Stop command that first sends terminate
to request a graceful shutdown, and if that fails uses disconnect
for a forceful shutdown.