Skip to content

Conversation

michaelPotter
Copy link
Contributor

@michaelPotter michaelPotter commented Jun 17, 2025

Adds an integration with nvim-dap to send selections to the dap-repl while an nvim-dap session is running.

I've been using this patch for a few weeks and this is an extremely ergonomic way to debug and inspect variables.

This integration is off by default and completely optional - if dap isn't installed, the integration is bypassed.

@nickeisenberg
Copy link
Contributor

Hey sorry for the late reply. Could you explain why this is nice, I never really use dap. So this is just sends lines to that DAP repl when a session is open?

@michaelPotter
Copy link
Contributor Author

So this is just sends lines to that DAP repl when a session is open?

Yeah pretty much! DAP lets you set debug breakpoints in your code, and has a repl where you can evaluate expressions in the scope of the breakpoint. Handy for regular old debugging, but it's especially good for exploring large data structures since it has like folds you can open/close to go up/down the structure.

This integration just streamlines the workflow for using it. It's kind of nice too as a general repl for languages like Java that don't really have one.

The implementation here... isn't fantastic. I couldn't find another way attach to an "in process" repl, but it's minimally invasive to the rest of the code.

@nickeisenberg
Copy link
Contributor

Ill take a deeper look soon and test it out. Sorry, I've been busy with work recently!

@michaelPotter
Copy link
Contributor Author

DAP itself can be kind of a pain to set up, I can send you some configs to get you going if you want? Do you use Mason?

@nickeisenberg
Copy link
Contributor

I actually already have it set up for python, I just never really used it.

@nickeisenberg
Copy link
Contributor

Ignore my last comment that I deleted if you saw that...

So I just test this out a bit, its pretty cool! Ill add the feature in. Thanks!

@nickeisenberg nickeisenberg merged commit d44ef40 into Vigemus:master Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants