How to create conditional breakpoints #670
-
From issues such as this it seems like nvim-dap supports creating conditional breakpoints, but I can't find any documentation on how. When I look at the available commands for DAP, I see DapToggleBreakpoint but nothing for conditional breakpoints. Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
See |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for this functionality! It's great to have that in neovim! I am still struggling to make conditional breakpoints work. I can specify the condition, it is shown in the dap-ui Breakpoints window and repl does not report any error. Still the debugger stops at the breakpoint even though the condition is not met. So e.g. I set the condition to Another example, I set the condition to result = validate_checksum(fops, fp, header.checksum, header.size);
if (result) { // <- Breakpoint set here
fops.seek(fp, next_pos, SEEK_SET);
} But the debugger stops every time the breakpoint is reached, no matter what I tried to set the condition as string with What am I missing? |
Beta Was this translation helpful? Give feedback.
See
:help dap.toggle_breakpoint