News for hackers. Stuff that matters.
Re:Rust, RR, Neovim: A perfect debug combination by DixieDev on Tuesday April 11, 2023 @06:39AM (#35523212)
Anyone got other useful tools for debugging within (neo)vim? Just seamlessly putting down breakpoints, stepping through code execution, and getting a fully fledged debugging UI experience (a la Visual Studio or Remedy BG)? This is possibly the only thing I miss from developing on Windows, and it's a shame!

EDIT: I specified 'within vim' but actually I'd be down for standalone Linux app recommendations too.

Re:Rust, RR, Neovim: A perfect debug combination by huseyinkeles on Tuesday April 11, 2023 @06:51AM (#35523301)
nvim-dap is what’s being used the most.

https://github.com/mfussenegger/nvim-dap

Re:Rust, RR, Neovim: A perfect debug combination by salicideblock on Tuesday April 11, 2023 @07:05AM (#35523393)
termdebug (used by the tool linked in the topic) basically does this for anything you can debug in GDB. It's the tightest integration of debuggers and (neo)vim I have used.

There are also DAP-based integrations, which I have put the effort into using.

Re:Rust, RR, Neovim: A perfect debug combination by BaculumMeumEst on Tuesday April 11, 2023 @07:17AM (#35523479)
The overall quality of a debugger is far more important than the question of which text editor it's integrated with for me personally.

To that end I would say Intellij products have the best debugging experience I've found on Linux. VS Code after that.

Re:Rust, RR, Neovim: A perfect debug combination by davidkunz on Tuesday April 11, 2023 @07:32AM (#35523582)
I use nvim-dap[1] in combination with jester[2] (by me) to run and debug Jest tests in my project, it works perfectly.

[1]: https://github.com/mfussenegger/nvim-dap

[2]: https://github.com/David-Kunz/jester

Re:Rust, RR, Neovim: A perfect debug combination by qbasic_forever on Tuesday April 11, 2023 @07:33AM (#35523599)
VS code plus its vim key binding plugin. The neovim plugin world is just way too unstable in my experience.
Re:Rust, RR, Neovim: A perfect debug combination by II2II on Tuesday April 11, 2023 @08:53AM (#35524453)
Came here to say pretty much the same thing, except I use the Neovim extension for VS Code. It uses Neovim as the backend and, from my experience, behaves a lot more like (Neo)Vim. It is much easier to setup, since debugging is handled by VS Code. The main drawback is VS Code does not work in a terminal, which is okay IMHO since you still have access to Neovim from the shell.
Re:Rust, RR, Neovim: A perfect debug combination by favadi on Tuesday April 11, 2023 @08:07AM (#35523970)
I tried nvim-dap but it is somewhat clunky, unintuitive to use. Turn out that that using delve, gdb, pydb directly on the command line is fine, I don't really need editor integration.
Re:Rust, RR, Neovim: A perfect debug combination by flohofwoe on Tuesday April 11, 2023 @08:14AM (#35524052)
VSCode with the CodeLLDB or MS C/C++ extensions both usually work out of the box for debugging most compiled languages (so far I tried C/C++, Rust and Zig), but compared to proper Visual Studio it's very bare bones (especially the variable view panel).
Re:Rust, RR, Neovim: A perfect debug combination by delta_p_delta_x on Tuesday April 11, 2023 @08:21AM (#35524144)
> compared to proper Visual Studio

Debugging in proper Visual Studio is by far the most pleasant experience I have ever had. Flame graphs, call graphs, memory and CPU utilisation graphs, straightforward call stacks and variable views... FOSS debugging utilities don't even come close to the debugging productivity on VS 2022.

Re:Rust, RR, Neovim: A perfect debug combination by JamesonNetworks on Tuesday April 11, 2023 @08:18AM (#35524102)
So over the weekend I just went through a vim reworking for myself after discovering astronvim. I replaced my config with that one and installed nvim-dap-python through the user template, was able to attach and debug like I was using pycharm in a few hours of tweaking. I really like it

I did have a couple of plugins I cant really live without (ZoomWinTab and A.vim) so Im working on porting them to lua with the help of chatgpt. Really like the experience so far. Def worth checking out astronvim / nvchad

Re:Rust, RR, Neovim: A perfect debug combination by nkjnlknlk on Tuesday April 11, 2023 @01:45PM (#35528532)
Finding astronvim through this comment and it looks like it may be time to move on from my regular vim to nvim. I like keeping things light so I'll probably just steal some plugins used there but the functionality looks like things I already have except with better UX. Thanks for sharing!
Re:Rust, RR, Neovim: A perfect debug combination by ReleaseCandidat on Tuesday April 11, 2023 @08:49AM (#35524417)
> I specified 'within vim' but actually I'd be down for standalone Linux app recommendations too.

Totalview https://totalview.io/ or Ex-Allinea (now Nvidia) - don't know if it's still usable as a 'general' debugger though. https://developer.nvidia.com/allinea-ddt

Both don't work with Rust.

Re:Rust, RR, Neovim: A perfect debug combination by gavinhoward on Tuesday April 11, 2023 @09:09AM (#35524605)
Shameless plug, but my development environment [1] may be close to what you're looking for. (There's pictures!)

A couple of details have changed since that post. The only one that you might care about is that I now have two tmux panes with gdb-dashboard. This is meant to use space better. One pane has all of the variables and nothing else. The other has everything else.

If you care about that, I'll tell you how to do it.

[1]: https://gavinhoward.com/2020/12/my-development-environment-a...

Re:Rust, RR, Neovim: A perfect debug combination by zteppenwolf on Tuesday April 11, 2023 @10:29AM (#35525663)
This is very cool! I created this small convenience script without the intent to customize `Termdebug` itself, leaving any preferences to the users. But I can see many nice things you added there that can combine very well with the two!
Re:Rust, RR, Neovim: A perfect debug combination by Foxboron on Tuesday April 11, 2023 @09:50AM (#35525105)
You could try vimspector. It's main target is vim and not neovim.

https://github.com/puremourning/vimspector/

Re:Rust, RR, Neovim: A perfect debug combination by ilikehurdles on Tuesday April 11, 2023 @10:34AM (#35525737)
Look into nvim-dap and the ecosystem around it.
Re:Rust, RR, Neovim: A perfect debug combination by 9029 on Tuesday April 11, 2023 @05:14PM (#35531662)
I'm surprised nvim-dap-ui wasn't mentioned yet. It still has less features than vimspector, but personally I prefer the nvim-dap ecosystem. No memory viewer is a bummer though.

https://github.com/rcarriga/nvim-dap-ui