| 381 | } |
| 382 | |
| 383 | void 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 | |
| 416 | void TelnetDebugger::pushStackFrame() |
| 417 | { |
no test coverage detected