-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow pause on conditional exception
Fixes microsoft/vscode#104453
- Loading branch information
1 parent
55f9150
commit 848c81a
Showing
5 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/test/threads/threads-pause-on-exceptions-pauses-on-conditional-exceptions.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Pausing on caught exceptions | ||
Evaluating#1: setTimeout(() => { try { throw new Error('hello'); } catch (e) {} }) | ||
Evaluating#2: setTimeout(() => { try { throw new Error('goodbye'); } catch (e) {} }) | ||
{ | ||
allThreadsStopped : false | ||
description : Paused on exception | ||
reason : exception | ||
threadId : <number> | ||
} | ||
{ | ||
breakMode : all | ||
details : { | ||
stackTrace : at eval2.js:1:32 | ||
} | ||
exceptionId : Error: goodbye | ||
} | ||
{ | ||
allThreadsContinued : false | ||
} | ||
Pausing on uncaught exceptions | ||
Evaluating#3: setTimeout(() => { throw new Error('hello'); }) | ||
Evaluating#4: setTimeout(() => { try { throw new Error('goodbye1'); } catch (e) {} }) | ||
Evaluating#5: setTimeout(() => { throw new Error('goodbye2'); }) | ||
{ | ||
allThreadsStopped : false | ||
description : Paused on exception | ||
reason : exception | ||
threadId : <number> | ||
} | ||
{ | ||
breakMode : all | ||
details : { | ||
stackTrace : at eval5.js:1:26 | ||
} | ||
exceptionId : Error: goodbye2 | ||
} | ||
{ | ||
allThreadsContinued : false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters