Hacker News new | past | comments | ask | show | jobs | submit login

The debugger.

I made your same argument for years to a buddy of mine that always used WebStorm (I'm a Python dev and he kept pushing me to try PyCharm). A coworker pushed me to try PyCharm since we're on Windows and I haven't really looked back. I even bought CLion.

If you can point me to an easy debugger to set up in neovim I'd probably be right back, but I can't. Couldn't figure out how to set up vimspector. And in PyCharm, at this point, I find it has better tooling than coc (I haven't wanted to spend the time setting up LSP/treesitter).

Furthermore, doing development in wsl isn't that great in my opinion and native windows neovim isn't either, even when using Windows Terminal. Its slow when handling a massive repository. FZF with ripgrep still works massively faster than telescope for my main work repository. I mostly dip into wsl when I want to do complex grep/sed/find operations and to make edits to my hledger timeclock sheet.

But one thing I've found to be a killer app for Pycharm Pro: vim keybindings in jupyter notebooks. Works way better than the plugins for Jupyter Lab.

IdeaVim is sometimes kind of disappointing, I wish JetBrains would just add a neovim plugin (I want to use vim sandwich instead of vim surround but alas). Still, it's good enough.




Debugging in Neovim is quite simple, I recommend nvim-dap, I made a few videos:

https://youtu.be/ga3Cas7vNCk

https://youtu.be/SIYt1dopfTc

If you prefer Vimspector:

https://youtu.be/-AZUIL1rY3U


I watched your first video. As someone who likes the idea of Vim and has learned many of the keyboard shortcuts, my impression of the video was "Debugging in Neovim is quite simple. Just remember these 35 keyboard shortcuts."


That's true, it requires a bit of memorization and configuration. I've put the shortcuts similar to character movements: CMD + j,k,l (jump over, jump out, jump in).


I've mentioned this to several others (and also as a response to David in the past) but I highly, HIGHLY recommend anyone who's just getting started with nvim-dap, watch these videos. They helped me immensely when I was first getting it set up.

Thank you David, they're a fantastic overview of these plugins!


Wow, thanks so much, I'm humbled!


I knew I'd watched the first two videos at some point because when I opened this page, those first two links were the only ones greyed out. Good stuff.


Thank you!


Vim added a debugger plugin that is installed by default called termdebug.

I work on kernels and various pieces of the boot process, so my needs when it comes to debugging aren't a typical case.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: