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

Method EnterBreakState

source/Debugger.cpp:135–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134
135int Debugger::EnterBreakState()
136{
137 if (mInternalState != DIS_Break)
138 {
139 if (mInternalState != DIS_Starting)
140 // Send a response for the previous continuation command.
141 if (int err = SendContinuationResponse())
142 return err;
143 // Remove keyboard/mouse hooks.
144 if (mDisabledHooks = GetActiveHooks())
145 AddRemoveHooks(0, true);
146 // Set break state.
147 mInternalState = DIS_Break;
148 }
149 //else: no continuation command has been received so send no "response".
150 // Hooks were already removed and mDisabledHooks must not be overwritten.
151 return DEBUGGER_E_OK;
152}
153
154
155void Debugger::ExitBreakState()

Callers

nothing calls this directly

Calls 2

GetActiveHooksFunction · 0.85
AddRemoveHooksFunction · 0.85

Tested by

no test coverage detected