nvim-dap icon indicating copy to clipboard operation
nvim-dap copied to clipboard

REPL commands for stepping with instruction granularity

Open Jorenar opened this issue 8 months ago • 2 comments

Hi!

As in the title, this PR adds REPL commands for stepping with instruction granularity regardless of what is set as the default stepping granularity.

It also fixes name of granularity parameter in docs.

Jorenar avatar May 01 '25 22:05 Jorenar

I'm a bit tempted to instead have the granularity as argument to the commands instead of adding dedicated commands. Although I guess .ni is gdb inspired?

Leaving this open for a bit to gather some more feedback.

mfussenegger avatar May 22 '25 13:05 mfussenegger

Yeah, GDB simply adds "i" suffix to stepping commands, and I've did the same here as it's quite convenient.

I'm playing around with making a plugin adding disassembly view (nvim-dap-disasm), so having instruction stepping commands is helpful.

Jorenar avatar May 22 '25 13:05 Jorenar