You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently to add a conditional breakpoint, you'd have to explicitly use nvim-dap's API on a given line, for example:
:lua require('dap').set_breakpoint('foo == 15')
While nvim-dap-ui shows the condition of the breakpoint in its DAP Breakpoints element (window), it doesn't allow modifying it or adding new one from there.
It would be a nice feature to be able to set or edit that condition from the breakpoints window.
The text was updated successfully, but these errors were encountered:
This part of API will be changed in the nvim-dap upstream soon mfussenegger/nvim-dap#1388
Might be worth to wait till said change is done.
Perhaps, nvim-dap will add UI functionality for this.
The problem with implementing this is that dap.toggle_breakpoint() creates breakpoints "at the current line" in buffer taken from api.nvim_get_current_buf() . One cannot easily query it to set BP at specific line in file or function (not sure how well debuggers support the latter option). The workaround is probably possible by re-implementing this functionality on nvim-dap-ui side but it would be very ugly.
Currently to add a conditional breakpoint, you'd have to explicitly use nvim-dap's API on a given line, for example:
While nvim-dap-ui shows the condition of the breakpoint in its
DAP Breakpoints
element (window), it doesn't allow modifying it or adding new one from there.It would be a nice feature to be able to set or edit that condition from the breakpoints window.
The text was updated successfully, but these errors were encountered: