lldb.nvim
lldb.nvim copied to clipboard
Feature: Interactive buffers
Ability to
- From the breakpoints buffer
- [x] Delete breakpoints
- [ ] Enable/disable breakpoint locations
- [ ] Jump to breakpoint locations (useful?)
- [x] Select thread and frame from the backtrace buffer
- [x] Select thread from the threads buffer
- [ ] Set watchpoints on local variables from the locals buffer
Strategy:
- [x] Define syntax for each type of buffers
- [x] ~~Use syntax element identifiers to make things interactive (ref)~~
I'm interested in this feature too. If this is still in the roadmap of the plugin, I would be happy to implement it. :)
And I would be happy to guide if you need any help. Skip the watchpoints part for now (but if you're super experienced with LLDB, go ahead).
The idea I had was to check if the following:
synIDattr(synID(line("."), col("."), 1), "name")
returns one of the names we are looking for (defined in the syntax file), to quickly assert that we are in the right line. Then use regex to extract the appropriate "number" (breakpoint, thread, frame ...) out. But if the former check does not simplify the latter regex, the former check may be skipped.