MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / PrintCallstack

Method PrintCallstack

external/as_add_on/debugger/debugger.cpp:755–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753}
754
755void 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
774void CDebugger::AddFuncBreakPoint(const string &func)
775{

Callers

nothing calls this directly

Calls 1

GetLineNumberMethod · 0.80

Tested by

no test coverage detected