MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / Disconnect

Method Disconnect

source/Debugger.cpp:2263–2281  ·  view source on GitHub ↗

Debugger::Disconnect Disconnect the debugger UI.

Source from the content-addressed store, hash-verified

2261// Disconnect the debugger UI.
2262//
2263int Debugger::Disconnect()
2264{
2265 if (mSocket != INVALID_SOCKET)
2266 {
2267 shutdown(mSocket, 2);
2268 closesocket(mSocket);
2269 mSocket = INVALID_SOCKET;
2270 WSACleanup();
2271 }
2272 // These are reset in case we re-attach to the debugger client later:
2273 mCommandBuf.Clear();
2274 mResponseBuf.Clear();
2275 mStdOutMode = SR_Disabled;
2276 mStdErrMode = SR_Disabled;
2277 if (mInternalState == DIS_Break)
2278 ExitBreakState();
2279 mInternalState = DIS_Starting;
2280 return DEBUGGER_E_OK;
2281}
2282
2283// Debugger::Exit
2284//

Callers 1

FatalErrorMethod · 0.80

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected