Debugging Code in Neovim (Rust, Go, Python etc)

preview_player
Показать описание
This is a comprehensive guide to enabling and using remote debugging (for Rust and other supported languages) in Neovim. I discuss the need for remote debugging and how it works on Neovim with an introduction to Debug Adapter Protocol (DAP). Stick around until the end for more quality of life improvements on the default installation options.

#rust #rustlang #neovim #nvim #debugging

Sections:
-------------
1. Intro - 00:00
2. Why remote debug - 01:24
3. Design - 02:24
4. nvim-dap and Rust debugger - 05:31
5. Key mappings - 09:19
6. nvim-dap-ui - 10:29
7. Typical debug workflow - 11:23
8. Visual improvement for breakpoints - 14:27
9. nvim-dap-projects - 15:45
10. Conclusion - 19:28
11. Bloopers - 20:10

Attributions:
------------------

Background music:
Creative Commons CC BY-SA 3.0

Sound effects:
Рекомендации по теме
Комментарии
Автор

Finally someone explained main principles - the schema at the beginning showed the "obvious" things.
On the other hand - it feels like you want to impress by your speed - but it makes following your presentation quite difficult.
For me even pausing the video was often not easy as the time between you finish entering some text to switching elsewhere was often a fraction of second.
Help your visitors to realise the context (mostly the file you are editing and why you do that), and what was the final stage (the lua code you have entered). Visitors will appreciate short pause, ideally with "that's it" or even summarising what was done like "now the plugin for DAP UI is added".
Showing absolute line numbers may help for referencing lines (like in line 32 we have xx/yy).
Showing file names and path is also handy (for this, the Nvim-Tree can help showing file location nicely even though using Telescope file finder is much faster for coding).
I really like your talent to explain the things from top level ones down to implementation details. About to "hit the subscribe button" to learn from you and see your presentation progress. Thanks.

smibssmibs
Автор

Impressive to see an indian code youtuber could have that much skill!
I compiled the nvim source code and maintain my own config... ooffs... that was hot

suryanshdey
Автор

Thanks! Very nice guide 😎👍 I’m gonna try this.

erpelappel
Автор

1:23 hey bro ... I wanna use nvim on my remote server, in my organization i use putty for connection
is there any way to put neovim (i use Astronvim ) to reflect only to my user also my user is not there is sudoers list too

MO-fgcm
Автор

It's hard to follow what you type (actually paste) in the video; it'd be better to share some code for the configuration. Moreover, you might want to get rid of the tons of warnings in the Lua file (there's a setting for the Lua LSP to ignore that warning). Finally, it's very bad practice to have absolute paths in the configuration: I'm talking about the absolute path to the debugger.

LorenzoBettini
Автор

hey could you share your nvim and tmux config? looks amazing!

offensive-operator