vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Expose exception settings in a json file

Open stevencl opened this issue 10 years ago • 4 comments

We should consider exposing the ability for the user to specify which exceptions they want to break on when thrown or when they are unhandled. Consistent with how we manage settings throughout the product we could have a default exceptionsettings.json file that defines the default settings and a user settings file that the user can override or customise.

For example, something like the following: exceptionsettings

stevencl avatar Dec 09 '15 10:12 stevencl

I like this however where would this setting file live? Why not have it top level in our launch.json, as a sibling to "configurations" we could have "exceptions". Putting it in a separate file has the downside of introducing one more configuration file and it would be disconnected from other debug configurations. Another thing to tackle is how to disable / enable these exception breakpoints from the UI. There can be an option for global enable / disable but not sure how to disable one specific breakpoint. Though we can discuss this later.

@weinand, @stevencl thoughts?

isidorn avatar Dec 09 '15 14:12 isidorn

Putting it in the launch.json sounds like a good idea.

stevencl avatar Dec 09 '15 14:12 stevencl

@stevencl @isidorn Yes, we should store all breakpoints (not only exceptions) in the launch.json. Exceptions are just a special type of breakpoint (very similar to function-breakpoints). Storing BP in launch.json raises the question whether we should support to scope BP to a specific launch config (e.g. different breakpoints for launch vs. attach).

weinand avatar Dec 09 '15 16:12 weinand

Closing this as out-of-scope, feel free to reopen

isidorn avatar Nov 17 '17 15:11 isidorn