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