Debugger::Exit Gracefully end debug session. Called on script exit. Also called by "detach" DBGp command.
| 2285 | // Gracefully end debug session. Called on script exit. Also called by "detach" DBGp command. |
| 2286 | // |
| 2287 | void Debugger::Exit(ExitReasons aExitReason, char *aCommandName) |
| 2288 | { |
| 2289 | if (mSocket == INVALID_SOCKET) |
| 2290 | return; |
| 2291 | // Don't care if it fails as we may be exiting due to a previous failure. |
| 2292 | SendContinuationResponse(aCommandName, "stopped", aExitReason == EXIT_ERROR ? "error" : "ok"); |
| 2293 | Disconnect(); |
| 2294 | } |
| 2295 | |
| 2296 | int Debugger::FatalError(LPCTSTR aMessage) |
| 2297 | { |