vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Debug adapter can't enable ExceptionBreakpointFilters by default

Open faxue-msft opened this issue 10 years ago • 3 comments

Because of some recent changes now debug adapter must provide default ExceptionBreakpointFilters, however there seems to be no way to enabled some or all of these filters by default. It's kind of unexpected for user that the "Unhandled Exceptions" filter is disabled by default.

Related: https://github.com/Microsoft/vscode/issues/3015#issuecomment-185403965 https://github.com/Microsoft/vscode/commit/c676ceb7333eb43a1d9a95f9841901e7dbe929de

faxue-msft avatar Mar 03 '16 15:03 faxue-msft

You are right, currently it is not possible for an adapter to say that an exception breakpoint should be enabled by default. Forwarding to @weinand to decide if we want to introduce this to the protocol, and if we decide to introduce it then I can add it on the vscode side

isidorn avatar Mar 03 '16 16:03 isidorn

Makes sense. Will try to add this for March.

weinand avatar Mar 03 '16 17:03 weinand

@daviwil @felixfbecker @lukehoban @rkeithhill @gregg-miskelly you can now control whether an exception filter is enabled or disabled by returning an attribute default for the exceptionBreakpointsFilter capability.

weinand avatar Mar 04 '16 11:03 weinand