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

Method SendContinuationResponse

source/Debugger.cpp:2081–2100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2079}
2080
2081int Debugger::SendContinuationResponse(char *aCommand, char *aStatus, char *aReason)
2082{
2083 if (!aCommand)
2084 {
2085 switch (mInternalState)
2086 {
2087 case DIS_StepInto: aCommand = "step_into"; break;
2088 case DIS_StepOver: aCommand = "step_over"; break;
2089 case DIS_StepOut: aCommand = "step_out"; break;
2090 case DIS_Run: aCommand = "run"; break;
2091 // Seems more useful then silently failing:
2092 default: aCommand = "";
2093 }
2094 }
2095
2096 mResponseBuf.WriteF("<response command=\"%s\" status=\"%s\" reason=\"%s\" transaction_id=\"%e\"/>"
2097 , aCommand, aStatus, aReason, (LPCSTR)mContinuationTransactionId);
2098
2099 return SendResponse();
2100}
2101
2102// Debugger::ReceiveCommand
2103//

Callers

nothing calls this directly

Calls 1

WriteFMethod · 0.80

Tested by

no test coverage detected