lldb.nvim icon indicating copy to clipboard operation
lldb.nvim copied to clipboard

Feature: Interactive buffers

Open critiqjo opened this issue 9 years ago • 3 comments

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

critiqjo avatar Sep 05 '15 04:09 critiqjo

Strategy:

  • [x] Define syntax for each type of buffers
  • [x] ~~Use syntax element identifiers to make things interactive (ref)~~

critiqjo avatar Sep 14 '15 08:09 critiqjo

I'm interested in this feature too. If this is still in the roadmap of the plugin, I would be happy to implement it. :)

ckwang avatar Jun 08 '16 00:06 ckwang

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.

critiqjo avatar Jun 08 '16 09:06 critiqjo