MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / Break

Method Break

src/hx/Debugger.cpp:333–349  ·  view source on GitHub ↗

Wait for someone to call Continue() on this call stack. Really only the thread that owns this call stack should call Wait().

Source from the content-addressed store, hash-verified

331 // Wait for someone to call Continue() on this call stack. Really only
332 // the thread that owns this call stack should call Wait().
333 void Break(DebugStatus status, int breakpoint,
334 const String *criticalErrorDescription)
335 {
336 // If break status is break immediate, then eliminate any residual
337 // continue count from the last continue.
338 if (status == DBG_STATUS_STOPPED_BREAK_IMMEDIATE) {
339 mContinueCount = 0;
340 }
341 // Else break status is break in breakpoint -- but if there is a
342 // continue count, just decrement the continue count
343 else if (mContinueCount > 0) {
344 mContinueCount -= 1;
345 return;
346 }
347
348 this->DoBreak(status, breakpoint, 0);
349 }
350
351};
352

Callers 1

HandleBreakpointsMethod · 0.80

Calls 1

DoBreakMethod · 0.95

Tested by

no test coverage detected