mfussenegger / nvim-dap

Debug Adapter Protocol client implementation for Neovim
GNU General Public License v3.0
5.58k stars 201 forks source link

Manipulate exceptionBreakpointFilters #494

Open mr-majkel opened 2 years ago

mr-majkel commented 2 years ago

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

mr-majkel commented 2 years ago

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 commented 1 month ago

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