C++ 读取堆栈trace并写入控制台
StackTrace *st = new StackTrace(true);// true means get line numbers. for ( int i = 0; i < st->FrameCount; ++i ) { StackFrame *sf = st->GetFrame(i); Console::WriteLine(sf); }
C++ 读取堆栈trace并写入控制台
StackTrace *st = new StackTrace(true);// true means get line numbers. for ( int i = 0; i < st->FrameCount; ++i ) { StackFrame *sf = st->GetFrame(i); Console::WriteLine(sf); }