Debugging In Neovim (ft BashBunni)

  Рет қаралды 110,220

TJ DeVries

TJ DeVries

Күн бұрын

Пікірлер: 139
@Aryevang
@Aryevang 2 жыл бұрын
Dude, this is the kind of video what I pay internet for.
@nagkanya
@nagkanya 2 жыл бұрын
31:09 Yes! please make a video exploring the topic of windows and tabs. I always have a blast watching this series, and learn a bunch of cool stuff. Appreciate ya
@Oswee
@Oswee 2 жыл бұрын
Thank You booth for making this! I think every one should start with teaching debugging. So many hours wasted because of this... :) And yes please, make a video about the general navigation. That would be superb!
@teej_dv
@teej_dv 2 жыл бұрын
I will add it to my list!! Thanks for the Thanks :)
@OliNorwell
@OliNorwell Жыл бұрын
TJ is an incredible teacher, I had this on a third screen but still managed to learn about 10 different things. Legend.
@runtimejpp
@runtimejpp Жыл бұрын
truth. don't see enough maintainers (not that they dont do enough already) putting out as many videos about their own projects like tj, it's so much more intuitive than reading the docs esp for a newb. appreciate this the most
@demolazer
@demolazer 9 ай бұрын
100%. Very engaging and good at breaking things down
@nicolhaidi
@nicolhaidi 2 жыл бұрын
I’ve learnt so much from this series it’s unbelievable. +1 on the idea of making a video about windows/tabs/buffers, as it’s sonething I still struggle with a lot. Thank you for everything.
@Jscodin
@Jscodin 11 ай бұрын
8:14ish - mind blown, never knew you could do that, such a cool tip
@ChrisPatti
@ChrisPatti 2 жыл бұрын
this is the best video I’ve seen on debugging with neovim. thank you for making it!
@granviaje
@granviaje 10 ай бұрын
the kickstart video & this. my life is complete now 😄
@robonator2945
@robonator2945 Жыл бұрын
100% there need to be more videos like this in the world where it's just teaching people about nvim, specifically because of things like 8:45 where they will off-hand mention a massive QoL improvement
@byt3blitz
@byt3blitz Жыл бұрын
Was banging my head on the wall for a while trying to figure out dap and dap-go. This video solved my initial problem but along the way I learned so much. I've spent 6 months in neovim and it's pretty wild to see all the bad habits I developed along the way lol from not taking the time to dive into the fundamentals. Amazing work!
@leana8959
@leana8959 Жыл бұрын
This is at the same time wholesome, cool, and very informative. Thanks, BashBunni and TJ!
@benarcher372
@benarcher372 Жыл бұрын
So good, so much to learn. Merry Christmas 2023.
@Oswee
@Oswee 2 жыл бұрын
To run the quick command it the terminal you can use `Ctrl+z` which puts the process (Neovim) in the background. Then run your quick command. And then run the `fg` to bring back the last suspended process.
@eliasgill2453
@eliasgill2453 2 жыл бұрын
thank you good sir. I always have problems remembering how to enter again in neovim before ctr+z 😂
@hugohabicht6274
@hugohabicht6274 2 жыл бұрын
Or just open a tmux pane
@conradmbugua9098
@conradmbugua9098 Жыл бұрын
@@hugohabicht6274 on thing that annoys me with tmux is that I can't copy text from the tmux window to the browser
@bait6571
@bait6571 2 ай бұрын
I just... open the shell in neovim
@RootsterAnon
@RootsterAnon 2 жыл бұрын
I managed to setup my new Astro Vim with delve. What a ride. this will be bookmarked, thank you!
@rafaelcolladojr
@rafaelcolladojr Жыл бұрын
The absolutely most useful neovim video I've ever watched. Thanks for all the gems!
@Ellefsen97
@Ellefsen97 Жыл бұрын
I've had a hard time setting up debugging with Dap and because of this video I now have a fully functional debugger for C. Thanks a lot
@heftyfunseeker9987
@heftyfunseeker9987 2 жыл бұрын
This is such a wonderful format. I learned some great stuff not even related to debugging. Thank you, Bash and TJ!
@fam1u
@fam1u 2 жыл бұрын
I installed nvim-dap a while ago but realized I didn't use it much because I wasn't happy with my config and ended up just resorting to using debugger on the terminal. This gave me the motivation to install nvim-dap again and actually try to configure it properly.
@faraonch
@faraonch 2 жыл бұрын
Best walk through so far!!!!! It helps so much that you do it bilaterally!
@NiceMicroTV
@NiceMicroTV 2 жыл бұрын
Debugging in Neovim?? Always something new to learn. Also, I peaked into that neovim setup, and... grammar checking also exists in neovim???? Wow.
@AndyHuynh-p2s
@AndyHuynh-p2s 10 ай бұрын
Well done TJ and Bash! Fantastic teacher and partner to learn from
@jemag
@jemag 2 жыл бұрын
Thanks for the upload teej, really enjoying this series.
@williambillemeyling5647
@williambillemeyling5647 2 жыл бұрын
Hey TJ. I have a suggestion for a video/stream. It would be really cool if you could teach me and others the inner workings of neovim. As in, what modules neovim consists of, how to navigate the neovim code base, maybe an example of solving a small and simple pull request. Best, William.
@Zarazhas8
@Zarazhas8 2 жыл бұрын
8:54 🤯🤯🤯 whaaaat thats amazing. Also loving dem dabs from sudobunni
@faustona559
@faustona559 Жыл бұрын
Thanks for the video! On moving back a buffer to its original window in a tab: I believe this is only necessary due to having used Ctrl-W T, which moves the buffer over to the new tab. If instead one were to use something like ":tabedit %" or ":tab split", then the buffer would be opened in a new window in a new tab, but the current one would be left untouched.
@Don_XII
@Don_XII 2 жыл бұрын
These videos are great and informative. I am getting into neovim too. It would be great if there is screen key or anything similar so we can see keystrokes. There are few new things here that I did not know which can be found after some googling but just some input that it would be a great addition. :)
@nickbanderson
@nickbanderson 2 жыл бұрын
You are a sir and man a gentle. Telescope has expanded my brain. Now, time to find dank icons to ruin my focus while working.
@vikingthedude
@vikingthedude Жыл бұрын
The bash2basics playlist singlehandedly made me a neovimer
@demolazer
@demolazer 9 ай бұрын
Great stuff. Legit the only thing Neovim needs to have everything. Also I accidently found out today that C-Space highlights word cursor is on and enters visual mode.
@Alex-vz6nn
@Alex-vz6nn Жыл бұрын
This video is full of gems and tips beyond debugging. Thanks TJ and Bashbunny for the incredible content. Liked, subscribed and comment... done :)
@ahmedschhaider4762
@ahmedschhaider4762 Жыл бұрын
Thank you, TJ & Bash Bunny, This is really cool !!
@TheHTMLCode
@TheHTMLCode Жыл бұрын
Super informative, was listening in whilst looking after the baby and had to backup a few times to pick up a few tips 😂 awesome stuff!
@TheHTMLCode
@TheHTMLCode Жыл бұрын
This was the only thing that would still make me reach for VS code 20% of the time.
@tarasbiletskyi6301
@tarasbiletskyi6301 2 жыл бұрын
I just started wondering how do I debug in neovim, and boom, here's the video to substitute vimspector!
@Titere05
@Titere05 Жыл бұрын
Learning vim is like being gifted a large set of expensive, top of the line tools, when you've been making do with a screwdriver, a hammer and a flimsy set of pliers to fix things around the house. I have to remind myself that I have these powerful tools now and that I shouldn't fall back to the old, tedious way of editing text
@CZiNTrPT
@CZiNTrPT 2 жыл бұрын
if you press C-f when in : command, it opens a list of command history which you can edit,copy,etc so bash doesn't have to retype stuff into file she already ran
@arjunmahishi
@arjunmahishi Жыл бұрын
@8:37, you dont event have to type the ", {buffer=0}" part. You can just highlight it with +* or +# and type ":s///" By default, the pattern will be chosen based on the highlight :)
@sethcenterbar
@sethcenterbar Жыл бұрын
This video and the lsp one have helped me fully move from vs code. Thanks!
@xXPK26realXx
@xXPK26realXx 2 жыл бұрын
This is the perfect format to learn.
@tseitz
@tseitz Жыл бұрын
This is incredible. Thank you both
@d3javu1978
@d3javu1978 2 жыл бұрын
Thank you! finally got mine setup the way i wanted it, thanks for the shortcut!
@username-oz3uj
@username-oz3uj 2 жыл бұрын
followed along and managed to do everything you guys did right along with the video. love this but! bash didn't try setting a breakpoint outside of main(). when I tried to do that I couldn't get the debugger to run. "Failed to launch". wish you guys would have covered that :(
@iangann9828
@iangann9828 2 жыл бұрын
You should definitely make the follow-up video on the differences between buffers, windows, and tabs in Vim!
@eoinmcmahon1152
@eoinmcmahon1152 2 жыл бұрын
Please do a video on buffer windows and tabs! Would be super useful
@mariuskimmina
@mariuskimmina 2 жыл бұрын
This was cool, will I keep debugging with prints, tho? probably yes
@stephaneislistening6103
@stephaneislistening6103 2 жыл бұрын
I have the key map Ctrl W to close a terminal window so I can't use it in Neovim and so I wonder if there is a lua command to expand the current buffer. Then I could add my own custom mapping on it.
@stephaneislistening6103
@stephaneislistening6103 2 жыл бұрын
Big thank you ! I noticed that if my browser current tab is not one that shows the application, then the debugger will have trouble finding the source code, and it'll display the message: Breakpoint ignored because generated code not found (source map problem?) I wonder if I could have a callback handling that error event, so as to display my own message as well, say: Have you the app as the browser current tab ?
@3ckortreat
@3ckortreat 2 жыл бұрын
We need more videos with this 2
@qsmfoui
@qsmfoui Жыл бұрын
is there somewhere a guide on how to use this with c? like inspect the stack, heap and registers? i have a hard time finding something like this and i am not very good at understanding documentations but i try
@JustVoylin
@JustVoylin 8 ай бұрын
Been trying to setup debugging in neovim for GDExtensions, keep getting wrong_path errors of my breakpoints inside of the C++ code
@awabkhan2977
@awabkhan2977 Жыл бұрын
How do you do that at 8:18
@DFPercush
@DFPercush Жыл бұрын
Does nvim-dap support custom views of types, like .natvis files or something similar? Qt creator has its own way of doing it via Python scripts. Is there something similar in nvim?
@zennmyst5347
@zennmyst5347 2 жыл бұрын
Could you do a video on how to debug using C/C++. I'm struggling to get it setup. It's the only thing I have left to do in my Neovim setup. But I'm so lost. I am new to Linux, Neovim and C.
@stepansmirnov5876
@stepansmirnov5876 2 жыл бұрын
Remaps nnoremap lua require'dap'.continue() nnoremap lua require'dap'.step_over() nnoremap lua require'dap'.step_into() nnoremap lua require'dap'.step_out() nnoremap lua require'dap'.toggle_breakpoint()
@jwickerszh
@jwickerszh 2 жыл бұрын
Cool, I got dap setup as well, just need to set it up for JS node and browser and use it now.
@leonardomaia7661
@leonardomaia7661 Жыл бұрын
can you with lldb debugger in dap set a conditional breakpoint like strlen(str) < 5?
@darkenblade986
@darkenblade986 2 жыл бұрын
great vid but how do you set it up so when you press f5 in any file type it opens its specific debugger. In the vid yall set it to specifically dap-go which is the go debugger. I want it to where it doesnt matter if im in python, rust, go or whatever to open that filetypes debugger.
@korcakd2
@korcakd2 Жыл бұрын
Hey, thank you for the tutorial, it helped me a lot. What do you think of running vim-go plugin alongside of this? Do you think there would be any conflicts?
@Ruzveld83
@Ruzveld83 10 ай бұрын
Is there a way to execute library functions in Watches tab? Seems like it doesn't have the same scope as the code being debugged. For example I couldn't call strlen while debugging C code though I had imported.
@Ruzveld83
@Ruzveld83 10 ай бұрын
Phew, I found out the solution: for the example in my comment this should work: "/nat (size_t) strlen("hello")". The /nat prefix declares a native expression which is aware of C environment. This may be specific to a DAP which in my case is codelldb.
@Mawkler
@Mawkler 2 жыл бұрын
I was told there would be double synchronized dabs at the end
@ypucandeleteit
@ypucandeleteit 2 жыл бұрын
Really enjoyed teh video. where can I find convigs and keymaps for this?
@SnowDaemon
@SnowDaemon 11 ай бұрын
TJ da VimGod
@umlal
@umlal Жыл бұрын
I suggest a drinking game, a shot for every dab
@brettholman3606
@brettholman3606 2 жыл бұрын
TIL `
@freeman42742
@freeman42742 Жыл бұрын
Hey thanks for the video - One thing that confuses me is the use of .vim instead of .lua - Given the preference seems to be to use lua it would be cool to redo with that it mind
@pedrolobo9835
@pedrolobo9835 2 жыл бұрын
Thanks for this helpful video! =p
@echobucket
@echobucket 2 жыл бұрын
Someone should build a thing like Mason but for DAP stuff.. it's way too hard to setup right now.
@RajinderYadav
@RajinderYadav Жыл бұрын
Please make a video on how to setup nvim to debug typescript code. I am trying to get angular setup for debugging and not makng any progressse, code browsing is find. This video is way to chatty for me and I found (for me) it didn't help. I've got a pretty good setup (for someone just entering nvim) except for debugging both js code and java, but for right now I am trying to focus on js.
@bonchonmaru
@bonchonmaru 2 жыл бұрын
My soul hurt when all those dapui windows popped up, each with their own statusline D;
@cprn.
@cprn. Жыл бұрын
Who said it can't be done? Because I'm using `xdebug` in Vim for quite a few years now... (`vdebug` plugin) I'm here because I picked up more languages over the years and want to switch to DAP but failed with `vimspector` - glad to hear I'm not the only one 😂
@justanaveragebalkan
@justanaveragebalkan Жыл бұрын
Coming from an Emacs user,. i know the girl is not the most competent person in the room so to say and it's mostly an office bunny, but if you need the tool creator to install a plugin, is it really that good?
@seannewell397
@seannewell397 2 жыл бұрын
I spotted a wild @ThePrimeagen in the chat!!
@hamed9327
@hamed9327 2 жыл бұрын
this is my man
@Max-bh8tg
@Max-bh8tg 2 жыл бұрын
What dos the scratch window do?
@zeocamo
@zeocamo 2 жыл бұрын
TeeeJ you forgot to paste the plugins in desc.
@username-oz3uj
@username-oz3uj 2 жыл бұрын
here they are (using Packer) use 'mfussenegger/nvim-dap' use 'leoluz/nvim-dap-go' use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"} } use 'theHamsta/nvim-dap-virtual-text' use 'nvim-telescope/telescope-dap.nvim'
@zeocamo
@zeocamo 2 жыл бұрын
@@username-oz3uj gj, i was thinking to do this when i got back to my pc
@monkishrex
@monkishrex 2 жыл бұрын
Pro-tip: ctl-l clears the terminal screen in unix terms
@andressalazargaleano6419
@andressalazargaleano6419 2 жыл бұрын
does this work if you're using docker?
@epiderpski
@epiderpski 2 жыл бұрын
I was following along for everything.. but using rust it all worked except when I got to :lua require("dapui").open() not first try or any try... so sad.
@epiderpski
@epiderpski 2 жыл бұрын
oh... i'm using AstroNvim... so had to make sure the setup was called in the right order... so... First Try!
@gonkong5638
@gonkong5638 2 жыл бұрын
@@epiderpski I'm also use astro nvim, how is your setup now?
@epiderpski
@epiderpski 2 жыл бұрын
​@@gonkong5638 It was working until I updated AstroVim... now the debugger doesn't work anymore.
@殷梁禹
@殷梁禹 11 ай бұрын
is lualine normal lelt is a chiese font, look like cool
@chuxmyk
@chuxmyk Жыл бұрын
0:09 I’m just curious. Who are these guys that keep saying things can’t be done in neovim😅? I can imagine TJ creating issues everytime someone says something can’t be done in neovim.
@haras-unicorn
@haras-unicorn 2 жыл бұрын
Anyone on here knows how to use this with netcoredbg? I tried it and I can't get it to work.
@RoryIsNotACabbage
@RoryIsNotACabbage 2 жыл бұрын
52 minutes in, mimicking most of this, fully trusting in Teej cause I don't use Go so I haven't added dap-go and we haven't got to the bit where we can test it outside of go yet If this doesn't work first try I quit
@teej_dv
@teej_dv 2 жыл бұрын
Hopefully it worked.
@abhiavipatel
@abhiavipatel 2 жыл бұрын
Treesitter video sounds interesting
@tusharkuntawar6170
@tusharkuntawar6170 2 жыл бұрын
BTW it is sudo bunni now
@alpasfly
@alpasfly 2 жыл бұрын
Oh dear at long last :D
@uoweme5grand
@uoweme5grand Жыл бұрын
I didn't know the lady's name is bash until like half way through the video lol. I was getting really confused.
@rsmith31416
@rsmith31416 2 жыл бұрын
Not sure how practical running embedded debuggers would be since this feels cluttered, a bit finicky and slow (e.g. even adding a breakpoint takes a few seconds). It is probably a better idea to have a setup with tmux/screen and the usual terminal debugger.
@Ace-gw4uk
@Ace-gw4uk Жыл бұрын
God. Neovim is so great, we just don't know about it.
@maharjanlaxman
@maharjanlaxman 2 жыл бұрын
How do you use debug terminal anyone?
@ak2f
@ak2f 2 жыл бұрын
Is DAP in nvim natively like LSP?
@bew
@bew 2 жыл бұрын
No, not 'yet' at least
@AmirHosseinHonardust
@AmirHosseinHonardust 2 жыл бұрын
I have to go back to vscode for just this functionality alone. And it is killing my soul. I hope i can get good enough with nvim dap so I don't have to use vscode.
@alexwexov4298
@alexwexov4298 2 жыл бұрын
Lets gooooooo...
@MarcelRobitaille
@MarcelRobitaille Жыл бұрын
Can you fix my config too? I can become a streamer if that's what it takes
@chairlovawitabat
@chairlovawitabat 2 жыл бұрын
Yooo what is this color scheme?! I’m in love with it.
@Aryevang
@Aryevang 2 жыл бұрын
github.com/catppuccin/nvim
@user-he4ef9br7z
@user-he4ef9br7z 2 жыл бұрын
Nord probably.
@bashbunni
@bashbunni 2 жыл бұрын
Catppuccin!
@thecodealchemist7095
@thecodealchemist7095 Жыл бұрын
This os what tech Twitter and yt won't give you, i want to hop in with these guys. The pair programming is everything, pure growth. Hopping in to the book club @teej
@eliasgill2453
@eliasgill2453 2 жыл бұрын
Oh my god, you are so beautifull .... Neovim + Go 😻
@Miginyon
@Miginyon 8 ай бұрын
Love her
@erfer
@erfer 2 жыл бұрын
13:02 he didn’t
@artemrusinov3034
@artemrusinov3034 2 жыл бұрын
We want Continueeee!!! :D
@rafaeloledo
@rafaeloledo Ай бұрын
8:52 omg
@Miginyon
@Miginyon 8 ай бұрын
Folke needs to make mason for dap
@Darkkte
@Darkkte 2 жыл бұрын
could you share her config with us :P
Neovim Lua Plugin From Scratch
1:48:24
TJ DeVries
Рет қаралды 89 М.
Why I Cant Stand IDE's After Using VIM | Prime Reacts
17:51
ThePrimeTime
Рет қаралды 410 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Git & GitHub Crash Course 2025
49:29
Traversy Media
Рет қаралды 8 М.
Rust Setup For Neovim (ft BashBunni) #bash2basics
20:02
TJ DeVries
Рет қаралды 88 М.
Neovim Is a Waste Of Time, And I LOVE It | Prime Reacts
17:00
ThePrimeTime
Рет қаралды 97 М.
DEBUG in Neovim. Like a BOSS.
9:44
DevOps Toolbox
Рет қаралды 60 М.
Why I Use Neovim From Within VS Code - Neovim Conf 2022 Talk
15:49
Advanced telescope.nvim Examples
14:12
TJ DeVries
Рет қаралды 29 М.
(Neo)Vim Made Me a Better Software Developer
40:27
vim-jp
Рет қаралды 55 М.
Neovim With AstroNvim | Your New Advanced Development Editor
16:08
DONT use Neovim!! (in these scenarios)
8:56
typecraft
Рет қаралды 52 М.
Configuring Emacs on My New Laptop
2:00:09
Tsoding Daily
Рет қаралды 102 М.