Skip to content

DAP errors when setting breakpoints are not respected #89059

Closed
@connor4312

Description

@connor4312

I wanted to validate logpoint breakpoint syntax in js-debug when setting the breakpoint. Plenty of times I have tried setting a breakpoint and only later realized it didn't get hit because I was missing a quotation mark. However it appears that errors in setBreakpoints aren't handled. I send back this error:

{id: 9231, format: 'Unexpected token 'const'', showUser: true}

It doesn't get shown to the user, and I see this in the window log:

[2020-01-21 15:35:26.072] [renderer6] [error] Error processing setBreakpoints: undefined: Error: Error processing setBreakpoints: undefined
    at t.RawDebugSession.handleErrorResponse (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2875:728)
    at file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2875:159
    at async R.sendBreakpoints (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5486:707)
    at async Promise.all (index 1)
    at async j.sendToOneOrAllSessions (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5517:343)
    at async j.enableOrDisableBreakpoints (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5514:374)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions