Skip to content
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

Manipulate exceptionBreakpointFilters #494

Open
mr-majkel opened this issue Mar 29, 2022 · 2 comments
Open

Manipulate exceptionBreakpointFilters #494

mr-majkel opened this issue Mar 29, 2022 · 2 comments

Comments

@mr-majkel
Copy link

Problem Statement

I want nvim-dap to allow easy toggling of the BreakpointExceptionFilter, to allow catching different types of exceptions. I am learning how to use it with debugpy for python, and I would like to have an option to jump into a debugger for the user's code raised exceptions.

Ideas or possible solutions

  • add additional fields to adapter/configuration tables or a separate config table, ideally it should be toggle as in VSCode: link to debugpy-faq
  • add a widget to toggle the option visually
@mr-majkel
Copy link
Author

Ok, so I have managed to find require("dap").set_exception_breakpoints() in the help:). A widget for it might still be nice addition. Feel free to close if you think otherwise.

Overall, I think that mentioning defaults table near the adapter configuration might be beneficial in the help. This table seems complimentary to the setup done in require("dap").adapters.<name>.

@lucaSartore
Copy link

Here you can find a simple plugin I made to make using that function a bit easier: https://github.com/lucaSartore/nvim-dap-exception-breakpoints

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

No branches or pull requests

2 participants