Skip to content

Commit

Permalink
Add debug trace stack when access violation
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Jun 17, 2024
1 parent ad2fbda commit a5667c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/HLAdapter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ class HLAdapter extends DebugSession {
debug("*** "+error+" ***");
syncThreads();
beforeStop();
var bt = dbg.getBackTrace();
debug("Callstack(tid:" + dbg.currentThread + "): " + bt.slice(0,5).map(f -> f.file + ":" + f.line));
var ev = new StoppedEvent(
"exception",
dbg.stoppedThread,
Expand Down

0 comments on commit a5667c3

Please sign in to comment.