Skip to content

Commit

Permalink
Fix exception window not shown in vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Apr 17, 2024
1 parent 69bac92 commit 4feec99
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/HLAdapter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -431,18 +431,17 @@ class HLAdapter extends DebugSession {
}

syncThreads();

beforeStop();
var msg = if( msg == Watchbreak )
"Data breakpoint"
"data breakpoint"
else if( exc != null )
"Exception"
"exception"
else if( isPause )
"Paused"
"paused"
else
"Breakpoint";
"breakpoint";
var tid = dbg.currentThread;
debug(msg+" on "+tid);
debug("Stopped (" + msg+") on "+tid);
if( isPause && tid != dbg.mainThread && !dbg.hasStack() ) {
tid = dbg.mainThread;
dbg.setCurrentThread(tid);
Expand Down

0 comments on commit 4feec99

Please sign in to comment.