Skip to content

Add options for handling errors encountered during debugging #717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tzengshinfu
Copy link

Based on #714

Added options for handling errors encountered during debugging.

Change Description

Add an On Errors option to the settings (highlighted in orange in the image below).
This option checks the diagnostics list for any items with severity set to "error" before starting debugging.
If any are found, it handles them according to the selected setting.
pr-1

Options

  • debugAnyWay: Continue debugging.
  • showErrors: Show errors and stop debugging.
  • abort: Stop debugging.
  • prompt: Display a dialog box for the user to choose one of the above three actions.

Since debugAnyWay is the default value, adding this feature does not change the current debugging behavior.
pr2

Example

Take this code with a spelling error as an example.
With On Errors set to prompt,
when pressing F5 or image,
a dialog box will appear asking the user how to proceed
pr-3

When showErrors is selected (highlighted in orange in the image above), the error list will be shown and debugging will stop.
pr4

@tzengshinfu
Copy link
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant