From a5667c3a0f51cf7c4c83c4bb897771f2b53ef448 Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Mon, 17 Jun 2024 12:58:26 +0200 Subject: [PATCH] Add debug trace stack when access violation --- src/HLAdapter.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/HLAdapter.hx b/src/HLAdapter.hx index f21fa50..ff668fa 100644 --- a/src/HLAdapter.hx +++ b/src/HLAdapter.hx @@ -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,