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

Add SetExceptionBreakpoint Optional Args #1378

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

blakekrpec
Copy link

In nvim-dap, set_exception_breakpoints() exposes one of two optional args in the DAP spec (ExceptionOptions), and it is always nil. This PR adds the other optional arg (ExceptionFilterOptions) and exposes both optional args in defaults.

This allows for non nil definitions of both optional args in the default table if needed/desired, otherwise they will default to nil.

Tested with debugpy, codelldb, and the Unity debugger.

@Erifirin
Copy link

Oh yeah! 'filterOptions' is required for Unity debugger. It would be great to merge this PR.

@mfussenegger
Copy link
Owner

mfussenegger commented Dec 21, 2024

Oh yeah! 'filterOptions' is required for Unity debugger. It would be great to merge this PR.

It will be some time before I get to this, because I'll want to make sure the API fits with what I have in mind for #1388 and also see how to deal with #494 . Before that I won't be making any other public API changes to these methods.

In the meantime you could bully ask the billion $ company to fix their adapter to comply with the specification. filterOptions are supposed to be optional

@Erifirin
Copy link

@mfussenegger Yes, I understand. You are absolutely right. For now, I will continue to modify session.lua locally. Maybe this issue will be solved in the future.

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.

3 participants