| 766 | } |
| 767 | |
| 768 | void CDebugger::PrintCallstack(asIScriptContext *ctx) |
| 769 | { |
| 770 | if( ctx == 0 ) |
| 771 | { |
| 772 | Output("No script is running\n"); |
| 773 | return; |
| 774 | } |
| 775 | |
| 776 | stringstream s; |
| 777 | const char *file = 0; |
| 778 | int lineNbr = 0; |
| 779 | for( asUINT n = 0; n < ctx->GetCallstackSize(); n++ ) |
| 780 | { |
| 781 | lineNbr = ctx->GetLineNumber(n, 0, &file); |
| 782 | s << (file ? file : "{unnamed}") << ":" << lineNbr << "; " << ctx->GetFunction(n)->GetDeclaration() << endl; |
| 783 | } |
| 784 | Output(s.str()); |
| 785 | } |
| 786 | |
| 787 | void CDebugger::AddFuncBreakPoint(const string &func) |
| 788 | { |
nothing calls this directly
no test coverage detected