Skip to content

Commit

Permalink
feat: add hover label for exception breakpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Feb 24, 2021
1 parent 4d40d29 commit 18cefab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/adapter/debugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,21 @@ export class DebugAdapter implements IDisposable {
label: localize('breakpoint.caughtExceptions', 'Caught Exceptions'),
default: false,
supportsCondition: true,
description: localize(
'breakpoint.caughtExceptions.description',
"Breaks on all throw errors, even if they're caught later.",
),
conditionDescription: `error.name == "MyError"`,
},
{
filter: PauseOnExceptionsState.Uncaught,
label: localize('breakpoint.uncaughtExceptions', 'Uncaught Exceptions'),
default: false,
supportsCondition: true,
description: localize(
'breakpoint.caughtExceptions.description',
'Breaks only on errors or promise rejections that are not handled.',
),
conditionDescription: `error.name == "MyError"`,
},
],
Expand Down

0 comments on commit 18cefab

Please sign in to comment.