| 753 | } |
| 754 | |
| 755 | void CDebugger::PrintCallstack(asIScriptContext *ctx) |
| 756 | { |
| 757 | if( ctx == 0 ) |
| 758 | { |
| 759 | Output("No script is running\n"); |
| 760 | return; |
| 761 | } |
| 762 | |
| 763 | stringstream s; |
| 764 | const char *file = 0; |
| 765 | int lineNbr = 0; |
| 766 | for( asUINT n = 0; n < ctx->GetCallstackSize(); n++ ) |
| 767 | { |
| 768 | lineNbr = ctx->GetLineNumber(n, 0, &file); |
| 769 | s << (file ? file : "{unnamed}") << ":" << lineNbr << "; " << ctx->GetFunction(n)->GetDeclaration() << endl; |
| 770 | } |
| 771 | Output(s.str()); |
| 772 | } |
| 773 | |
| 774 | void CDebugger::AddFuncBreakPoint(const string &func) |
| 775 | { |
nothing calls this directly
no test coverage detected