How to configure Debuggers in Neovim | FREE COURSE // EP 6

  Рет қаралды 46,876

typecraft

typecraft

Күн бұрын

X: / typecraft_dev
In this episode of neovim for newbs, we are going over probably the hardest thing to configure in neovim -- debuggers. Debugging is still not supported in neovim by default, but with some configuration we can get things going using Debug Adapters and the Debug Adapter Protocol!
OUR CONFIG (from this series): github.com/cpow/neovim-for-newbs
github links:
github.com/mfussenegger/nvim-dap
github.com/rcarriga/nvim-dap-ui
github.com/leoluz/nvim-dap-go
chapters:
0:00 - intro
0:53 - what is DAP
2:45 - how to give neovim DAP functionality
5:31 - sign up for a channel membership!
6:21 - the ui for our debugger
8:50 - debugging in GO
11:50 - success! we are debugging a go program

Пікірлер: 181
@ThatBidsh
@ThatBidsh 5 ай бұрын
loving this series so much, they need to just write down everything you said and put it in their docs lol
@lemurza5236
@lemurza5236 5 ай бұрын
It wouldnt be a bad idea to include this tutorial somewhere on thier official page
@ThatBidsh
@ThatBidsh 5 ай бұрын
yeah for real! @@lemurza5236 like a few months ago I tried figuring all this stuff out myself and wound up going back to sublime text because I couldn't even figure out the difference between LazyVim and lazy.nvim or how to translate docs for plug/packer into something lazy could accept. literally couldn't even get the :Lazy command to work without just installing the preconfigured version with all the defaults (LazyVim) but I wasn't really happy with the defaults. now, by contrast, I have features in neovim that I didn't even have set up in sublime. I have a really well-organized config that I can modify without fear, I can look at docs for other package managers and translate the code effortlessly into something that works with lazy.nvim (when supported), and on top of that, I FINALLY have proper syntax highlighting and an LSP for svelte files!! which wasn't even covered in this series but it's only *because* of this series that I was able to figure all that stuff out so quickly. I mean I would have eventually come back to it and probably eventually would have figured it out but this series saved me probably a good 6 months to a year of banging my head against millions of google searches and stack overflows and reddit posts lol
@aarond309
@aarond309 5 ай бұрын
by the way, you’re using dependencies backwards if a depends on b, c, and d, then when you load a, you also load b,c and d. if you invert it, so you have b, c, and d which each depend on a, when you load b, c, or d, only a will be loaded. this applies in this video specifically to the debuggers. you put the go debugger in the dependencies for nvim-dap, so when you load nvim-dap the go debugger will be loaded, even if you’re trying to debug typescript for example
@LinuxEssentials79
@LinuxEssentials79 18 сағат бұрын
Way to go Christopher! Well, the whole Neovim series (6 videos) is life changing way of code. Thanks Nerd!!! 😉
@faustozampa
@faustozampa 4 ай бұрын
Please keep going with this series and update us as with time goes on you change even just a little your config, because this is amazing and you are the best explainer i have ever come across
@typecraft_dev
@typecraft_dev 4 ай бұрын
You got it!
@TimvanCann
@TimvanCann 4 ай бұрын
Random tip: since you have separate lua files for each plugin, you can just open `:Lazy` and Sync. You don't have to close and reopen vim. Lazy should auto reload all these files when it detects changes. That also applies all changes to the plugin and keymaps.
@davidgretzschelcommunicati1630
@davidgretzschelcommunicati1630 2 ай бұрын
I'm too lazy to type out :Lazy and just type :La
@guilhermetsk
@guilhermetsk 5 ай бұрын
This is the best series for learning to setup neovim. Thanks you and congrats!
@typecraft_dev
@typecraft_dev 5 ай бұрын
Glad you think so!
@Redyf
@Redyf 5 ай бұрын
I agree, keep up the good work man
@puneethkumar-v
@puneethkumar-v 5 ай бұрын
Great!! How about one episode for Git Integration?
@typecraft_dev
@typecraft_dev 5 ай бұрын
that is a great idea
@boxeq8382
@boxeq8382 5 ай бұрын
@@typecraft_devyes pls!
@berkackgoz7825
@berkackgoz7825 5 ай бұрын
​@@typecraft_dev yes please! I'm trying to switch to nvim from Jetbrains and one thing that Jetbrains does really well is their Git intregration. I'd love to learn more about how it is done in nvim!
@dannierockz
@dannierockz 5 ай бұрын
I've been steadily hipping away at my nvim config for almost a year now and this series was so helpful as a comparison! I initially forked my config from LunarVim and have been customizing it. This series was perfect for that! Thank you for creating this!
@TehHayzen
@TehHayzen 5 ай бұрын
Aside from the content that's already very good, I also noticed a lot more work being put into the editing and visual effects throughout this series. I hope you continue down this path because it greatly improves the experience for the viewers
@__mader__
@__mader__ 5 ай бұрын
I love this series, finally I am gaining a better understanding of what's inside all those premade nvim distros! Two requests for the next episodes: * database integration with dadbod and dadbod-ui * git integration
@jose49716
@jose49716 4 ай бұрын
Waiting for it!!
@eliacortesi2787
@eliacortesi2787 3 ай бұрын
This
@TheFranklawrence
@TheFranklawrence 3 ай бұрын
I can't get over how entertaining you are when explaining whats going on. I really appreciate the background information you provided as to why we ended up where we are with debuggers. You've got such a knack for instructional videos.
@stroiman.development
@stroiman.development 5 ай бұрын
Thanks a lot for this series. It's by far the best I've seen yet about neovim configuration. I've been a vim user for probably 15 years now, gradually learning more and more vimscript, even did a small plugin back in the day. I made the switch to neovim many years ago (still having a vimrc file that was both neovim and vim compatible, with different plugins loaded depending on the actual host), and made the switch to lua as main config script maybe a year or 2 ago, but didn't understand everything. This series have helped me modularise my configuration, replace some plugins with more modern and simpler alternative, and improve the configuration for other parts, like LSP, while still keeping the settings that work for me. I still have leaving a wee bit of custom vimscript in there, but whatever works.
@whatisuser
@whatisuser 2 ай бұрын
Completed the entire series. Probably the best series on Neovim. Great stuff!
@williamokano
@williamokano 5 ай бұрын
Thanks man, I was REALLY waiting for this video
@typecraft_dev
@typecraft_dev 5 ай бұрын
Heck yes hope it helps!
@minhthanghoang4058
@minhthanghoang4058 5 ай бұрын
Damn you are a savior. I have tried to config Dap-nvim for weeks but always end up with errors. Thank you for the great series of nvim setup tutorial!!!
@maratiakupov4730
@maratiakupov4730 4 ай бұрын
Bro, you saved so much time for many people struggling with Lazy setup management. Keep doin your stuff, I love watching your vibe
@jimtexter3657
@jimtexter3657 5 ай бұрын
This is a fantastic series you are doing. Especially this last episode 6 on Debuggers. I've been trying to get a similar setup for rust to no avail. You've explained it so clearly in this video, I think may actually get it done.
@wheatiesbox
@wheatiesbox 5 ай бұрын
Fantastic, and you've made it way more simple than the docs made it seem every time I thought about doing this. Thanks a ton!
@typecraft_dev
@typecraft_dev 5 ай бұрын
Glad it helped!
@gabriellira4045
@gabriellira4045 5 ай бұрын
im new to neovim, this series helped me a lot, thanks man, great work
@typecraft_dev
@typecraft_dev 5 ай бұрын
Glad I could help!
@c0d_0x16
@c0d_0x16 3 ай бұрын
This is so far the best neovim series I've watched so far on nvim config. I would love to see a series on nvim plugin development. Lol 😂, super exited to finally dump my super old nvim config, thanks to you!
@krempay4ik371
@krempay4ik371 3 ай бұрын
This series is literally what i need, thanks alot!
@drum-computer
@drum-computer 4 ай бұрын
I've followed the entire series and now I have perfectly working setup and more importantly I finally understand how to further customize it. Thanks a lot!!!
@typecraft_dev
@typecraft_dev 4 ай бұрын
Awesome glad to hear it!
@returncode0000
@returncode0000 5 ай бұрын
Best nvim series out there. Superb teaching skills 👍
@alejandrocoronado1131
@alejandrocoronado1131 5 ай бұрын
Just in time! Wow i have veen looking for this. So glad i found these series. ❤
@ToanNguyen-tt9mm
@ToanNguyen-tt9mm 4 ай бұрын
Thank you so much @typecraft, I used to use nvchad as my neovim but sometimes I cant figure out what conflicts I get under the hood. Since your series, I have revamped all my config and understand what plugins and keymap I put to more
@ncpeaksean4278
@ncpeaksean4278 5 ай бұрын
Nice!, I was waiting for this new episode. Thank you so much!
@d_ogo
@d_ogo 4 ай бұрын
now that i'm finally at the end, THANK YOU SO MUCH, you were the single one who could actually teach me
@PetrenkoAndrii
@PetrenkoAndrii 5 ай бұрын
Coolest series, I've ever seen on the neovim topic. Thank you! I am mostly writing bash and terraform configs in nvim, but still I've learned here so many useful features :)
@johannesgrundl5642
@johannesgrundl5642 4 ай бұрын
Me too, bash, Ansible, Terraform and gitlab Ci/CD.
@macedonskyua
@macedonskyua 3 ай бұрын
Cool course, finally I have minimalistic neovim with what I really want and know what and where are configuring. Thank You! Waiting tmux course :))
@fantero1649
@fantero1649 5 ай бұрын
completely cracked series, if i wasnt so broke I'd pay your channel's membership
@bolcheviking
@bolcheviking 5 ай бұрын
Just as I was preparing to go to bed. Time to make some coffee to burn the midnight oil! Thanks for the video, Nerd!
@typecraft_dev
@typecraft_dev 5 ай бұрын
No rest for the nerdy!
@guilherme69343
@guilherme69343 5 ай бұрын
man, you made me back to nvim and now its awesome. Cheers from Brasil
@victordvickie
@victordvickie 5 ай бұрын
will you cover which-keys, Comments and other misc plugins?
@typecraft_dev
@typecraft_dev 5 ай бұрын
Yes!
@juniorsundar
@juniorsundar 5 ай бұрын
I hope you are well and fully recovered from that crazy bout of COVID. As always great video nerd!
@typecraft_dev
@typecraft_dev 5 ай бұрын
Thanks nerd!
@ChrisNoesen
@ChrisNoesen 5 ай бұрын
Great series! I think once the framework part of the series is complete, you should do a deep dive into each plugin. Like, do a deep dive tutorial on all the ins and outs of telescope, harpoon, etc. I am new to linux and neovim, and I want to get the most out of it. I am a visual learner and this series has help so much.
@benarcher372
@benarcher372 5 ай бұрын
Another really good episode! Thank you so much.
@kb571994
@kb571994 5 ай бұрын
This series is really helpful. Thank you.
@iustin4172
@iustin4172 5 ай бұрын
Great series! It would be nice to make an episode with little useful plugins to have in your config like trouble, harpoon and others like this
@ericzedd
@ericzedd 4 ай бұрын
This is the best series!
@sumitsinghdeode2138
@sumitsinghdeode2138 5 ай бұрын
Awesome series bro.
@cptflipper
@cptflipper 2 ай бұрын
Amazing series! Recently I've been getting into Vim to see what the fuss was about :D and went through your entire tutorial series and set up my C++ dev environment and honestly I don't think I'll be going back to a (for a lack of a better term) "regular" editor
@faleman
@faleman 5 ай бұрын
Another wonderful video in this series. Thanks for putting that together. Since you are a Ruby developer, have you tried setting this up with the Ruby debugger? If so, I'd love to see that.
@typecraft_dev
@typecraft_dev 5 ай бұрын
Not yet! But maybe someday
@marlonsbardelatti202
@marlonsbardelatti202 4 ай бұрын
will you do a video on how to lazy load plugins to decrease startup time? I think it would be a great video
@JohnDoe-mr6mq
@JohnDoe-mr6mq 5 ай бұрын
Love the intro
@milindsharma8106
@milindsharma8106 5 ай бұрын
I'd love an episode where you show us how to add Github Copilot integration!!! I'm not sure if you use it already, but I absolutely think you should - such an awesome tool :)
@dxmm_acalea-lk4ts
@dxmm_acalea-lk4ts 5 ай бұрын
Thanks for making these videos! I would love to see how I can get python virtual environments (sourced/activated for example in toggleterm) working with the lsp.
@yossefsabry1392
@yossefsabry1392 5 ай бұрын
Very nice i was waitingggg❤❤❤❤❤❤
@christiangonzales2034
@christiangonzales2034 2 ай бұрын
I really love this series! Can you do git integration next?
@typecraft_dev
@typecraft_dev 2 ай бұрын
Take a look at kzfaq.info/get/bejne/irJ-l9qnrqzTc5s.htmlsi=WULwlnZ9XD23DyOW OR kzfaq.info/get/bejne/sLWBgNqI1srUaas.htmlsi=4hQjoKcglV5l6yob for a couple of options for git integration. Let me know which one you like more!
@anagamidev
@anagamidev 5 ай бұрын
Amazing content, thank you 👌😄
@justanpc7644
@justanpc7644 5 ай бұрын
Thank you. The video was very helpful.
@SOGSEAL
@SOGSEAL 4 ай бұрын
noice, keep them coming! i subscribed :)
@typecraft_dev
@typecraft_dev 4 ай бұрын
Welcome!
@jessevdp_
@jessevdp_ 5 күн бұрын
Would love an additional video about configuring all the new Ruby tooling that’s coming out of Shopify. (And being implemented in VSCode) - Ruby LSP with code actions & semantic highlighting - Ruby debugger via debug gem (rdbg) - Running tests? Because they seem to kinda follow the standards, but are sometimes tricky to get working in anything other than VSCode. Also…. (fuzzy) code navigation using symbols from the LSP. Both globally as to methods and variables and constants within a file.
@andrewiglinski148
@andrewiglinski148 2 ай бұрын
Dude you're like the 4th person I save make a video on this in f****ing Go. I've never written a line of Go. I'm not even sure I could pick it out of a line up of different code... but for the life of me I can't get a good DAP flow going in my own workflow, TS, Python, and occasionally, if I'm feeling adventurous, Swift.
@IO-_-Ol
@IO-_-Ol 2 ай бұрын
I was also honestly hoping to see debuggers for C/Cpp haha. I rarely see people use debuggers in other languages too.
@a_cats
@a_cats 2 ай бұрын
@@IO-_-Ol for cpp i ended up just using gdb, i know it's possible to get it working inside nvim with dap too but after using it a little by itself it's actually fine
@casadogaspar
@casadogaspar 5 ай бұрын
I'll fully install defaultLazyvim, but I'm doing this series just to learn how things work at a lower level (and Lua syntax too), so maybe I can help to put a Swift LSP plugin in the future. It's so sad that we don't have one yet.
@riddickstark9628
@riddickstark9628 4 ай бұрын
Great series, can't thank you enough. I've been using vscode for a while and tried nvim for a while, but this series has me hooked. My question is why start the series with Javascript and Lua and then you install the debugger for Go?
@typecraft_dev
@typecraft_dev 4 ай бұрын
Mostly because go has a better debugging infrastructure
@AmitGupta-po4gf
@AmitGupta-po4gf 3 ай бұрын
I wondered about the same thing. By the way, did you manage to get your Javascript debugger working?
@dimitrisdrosos245
@dimitrisdrosos245 5 ай бұрын
Thanks, now I can make my java debug config better.
@user-yt3ce3wl6u
@user-yt3ce3wl6u 5 ай бұрын
Now that's what I'm talking about 🎉❤
@Msujfears
@Msujfears 5 ай бұрын
Let’s goooooo!!!
@typecraft_dev
@typecraft_dev 5 ай бұрын
LFG BABY
@kimhyungchae
@kimhyungchae 5 ай бұрын
Looks amazing🎉
@juanmacias5922
@juanmacias5922 5 ай бұрын
THAT NEW INTRO THO!
@__mader__
@__mader__ 5 ай бұрын
7:20 note that dap-ui requires nvim-dap, not the way around
@typecraft_dev
@typecraft_dev 5 ай бұрын
thats right thank you!
@0xcoffee427
@0xcoffee427 5 ай бұрын
You read my mind 😲 yesterday i was asking people how to use terminal debugger in neovim and today i see this video wow 😮
@johannesritter2053
@johannesritter2053 5 ай бұрын
Great video. But I am kinda confused because Mason has a category for DAPs aswell and I am curious on how I can use them together with nvim-dap und dap-ui. Could you make another video on that?
@arber10
@arber10 4 ай бұрын
Thanks a lot ❤
@evanrelf
@evanrelf 5 ай бұрын
Thanks for the video! FYI I think there's a little desync between your video and audio.
@user-pk7qz8nd1u
@user-pk7qz8nd1u 11 күн бұрын
Yeah, I have done it! I have finished this course. Where do I get the certificate now?
@maratiakupov4730
@maratiakupov4730 4 ай бұрын
Also looking forward to git integration! ❤
@typecraft_dev
@typecraft_dev 4 ай бұрын
Check it out here! Neovim and Git: SOLVED kzfaq.info/get/bejne/sLWBgNqI1srUaas.html
@sebastianalfaro1887
@sebastianalfaro1887 9 күн бұрын
Ey typecraft! A good subject to add to this serie could be Docker on nvim 🙃
@rock_sheep4241
@rock_sheep4241 5 ай бұрын
Sir, you have my subscribe. I wanted to see how to use debugger with neovim. Thank you
@alexanderisaev5548
@alexanderisaev5548 4 ай бұрын
Thanks!
@typecraft_dev
@typecraft_dev 4 ай бұрын
Thank YOU
@utvikler-no
@utvikler-no 5 ай бұрын
You are the man! ❤ could you also consider making a new video about copilot under this setup with lazy? 😊
@typecraft_dev
@typecraft_dev 5 ай бұрын
Yes absolutely
@hammerheadcorvette4
@hammerheadcorvette4 3 ай бұрын
The thumbnail expressed too much despair for my liking
@Trizzi2931
@Trizzi2931 5 ай бұрын
I wish neovim would implement their own dap so that it would get easier to manage. Nevertheless great videos.
@typecraft_dev
@typecraft_dev 5 ай бұрын
Very true. That would be nice
@natescode
@natescode 5 ай бұрын
Yes! Thanks 🙏
@programerlife8390
@programerlife8390 5 ай бұрын
the best of all KZfaq
@user-ti9mv9hb3g
@user-ti9mv9hb3g 5 ай бұрын
Thanks for tutorial! How I can setup JS and Java debugger?
@JohnPywtorak
@JohnPywtorak 3 ай бұрын
I think there is an additional install Winbar that you had already, but others may not have and therefore no buttons for step over continue etc in dap-ui.
@kmud7750
@kmud7750 5 ай бұрын
Thank you!
@avrenos
@avrenos 4 ай бұрын
Is this series finished? Please continue boss!!
@AmitGupta-po4gf
@AmitGupta-po4gf 3 ай бұрын
@typecraft - Super series. Had been recommending to everyone at work. Would you do a video to configure debugger for Javascript apps?
@NectX
@NectX 8 күн бұрын
You're awesome, nerd, thanks
@ivanmerelli3582
@ivanmerelli3582 5 ай бұрын
Hi, your course is really great. I am a data scientist and I commonly use R and Python. I would like to use nvim instead of RStudio and Python notebooks, perhaps within screen/byobu to always have one or more sessions active. Would it be possible to have a tutorial on transforming nvim into something similar to RStudio? In particular, I wonder if it's possible to display images remotely, as with RStudio. The same goes for Python notebooks. Thank you.
@wsollers1
@wsollers1 5 ай бұрын
These videos rock
@typecraft_dev
@typecraft_dev 5 ай бұрын
You rock
@rickyisajedi
@rickyisajedi 5 ай бұрын
This video is dope.
@typecraft_dev
@typecraft_dev 5 ай бұрын
You’re dope
@nahuellescano
@nahuellescano 5 ай бұрын
I want to share something, the way you set your dap configs it doesn't actually work for me. I've just had to writte down how it's written on the github help page. The rest of the series is so so so great. Really thankful to you to help me improve my configs.
@tudorliviu6405
@tudorliviu6405 5 ай бұрын
Great great serier ❤❤❤❤🎉🎉🎉🎉
@Phoenix-wb7ey
@Phoenix-wb7ey 27 күн бұрын
How to set it up for c ilooked into the wiki and did the same things however it didn't work out for me ..
@manee427
@manee427 5 ай бұрын
amazing
@duduoson1306
@duduoson1306 5 ай бұрын
Sick LL Bean vest.
@typecraft_dev
@typecraft_dev 5 ай бұрын
I gotta rock that bean
@martshal
@martshal 2 ай бұрын
So... you went through a lot of manual steps to set up the DAP that for golang, for instance, can you just use Mason to setup the DAP for the language that you want??? Or, is there some type of missing linkage?
@zombiron7794
@zombiron7794 5 ай бұрын
Just curious; why brew to install delve and not use mason?
@s-xatya5088
@s-xatya5088 5 ай бұрын
I want lsp for my java but I don't know how to do that. Can u tell me step by step what I need and how to do that?
@auwefg
@auwefg 5 ай бұрын
until what episode will this series be?
@Hellbending
@Hellbending 5 ай бұрын
I was trying to set up dap for both python and rust and holyyyyyy I wish I had just done rust first
@tolycodes
@tolycodes 5 ай бұрын
Ok, so THAT'S what was stopping me to actually consider NeoVim seriously. Thanks for the video nerd
@lenhattruong1948
@lenhattruong1948 5 ай бұрын
how about c++
@rickyisajedi
@rickyisajedi 5 ай бұрын
Hahaha “Now what the hell do you we now?!” 10:45
@3ckortreat
@3ckortreat 5 ай бұрын
downloaded tailwindcss with mason but it doesn't attach to my .tsx files, can you help me solve that?
@jpkuechle
@jpkuechle 2 ай бұрын
On your GitHub, It's says, "No need for DAP in my current config." Which Video covers that?
@redbossman
@redbossman 5 ай бұрын
Can you make a adjustment to select themes like t h I want to select between colorscheme themes cattpuccin, kanagawa, onedark etc. like in NvChad configuration. ?
@windowsrefund
@windowsrefund 3 ай бұрын
Telescope has a builtin theme picker you can map a keybinding to.
@redbossman
@redbossman 3 ай бұрын
@@windowsrefund i found this repo on github /paulobox/themes.nvim
30 Vim commands you NEED TO KNOW (in just 10 minutes)
10:27
typecraft
Рет қаралды 67 М.
My Forever Dev Workflow
16:02
typecraft
Рет қаралды 69 М.
Wait for the last one! 👀
00:28
Josh Horton
Рет қаралды 110 МЛН
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 3,5 МЛН
simple neovim debugging setup (in 10 minutes)
9:36
TJ DeVries
Рет қаралды 26 М.
I'm never using Git the same way again
11:19
typecraft
Рет қаралды 83 М.
A Powerful Way To Make Editing Code In Neovim Even Better
17:48
Josean Martinez
Рет қаралды 114 М.
I tried Neovim Distributions so you don't have to
9:12
typecraft
Рет қаралды 139 М.
From React To HTMX
40:01
ThePrimeTime
Рет қаралды 305 М.
Tmux will SKYROCKET your productivity - here’s how
10:02
typecraft
Рет қаралды 73 М.
3 Levels of Vim Refactoring
7:48
typecraft
Рет қаралды 36 М.
This Zsh config is perhaps my favorite one yet.
17:24
Dreams of Autonomy
Рет қаралды 148 М.
DEBUG in Neovim. Like a BOSS.
9:44
DevOps Toolbox
Рет қаралды 47 М.
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 52 МЛН
APPLE совершила РЕВОЛЮЦИЮ!
0:39
ÉЖИ АКСЁНОВ
Рет қаралды 4,2 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,2 МЛН
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 2 МЛН