MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / executionStopped

Method executionStopped

Engine/source/console/telnetDebugger.cpp:383–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383void TelnetDebugger::executionStopped(CodeBlock *code, U32 lineNumber)
384{
385 if(mProgramPaused)
386 return;
387
388 if(mBreakOnNextStatement)
389 {
390 setBreakOnNextStatement( false );
391 breakProcess();
392 return;
393 }
394
395 Breakpoint **bp = findBreakpoint(code->name, lineNumber);
396 if(!bp)
397 return;
398
399 Breakpoint *brk = *bp;
400 mProgramPaused = true;
401 Con::evaluatef("$Debug::result = %s;", brk->testExpression);
402 if(Con::getBoolVariable("$Debug::result"))
403 {
404 brk->curCount++;
405 if(brk->curCount >= brk->passCount)
406 {
407 brk->curCount = 0;
408 if(brk->clearOnHit)
409 removeBreakpoint(code->name, lineNumber);
410 breakProcess();
411 }
412 }
413 mProgramPaused = false;
414}
415
416void TelnetDebugger::pushStackFrame()
417{

Callers 1

execMethod · 0.80

Calls 2

evaluatefFunction · 0.85
getBoolVariableFunction · 0.85

Tested by

no test coverage detected