simple neovim debugging setup (in 10 minutes)

Поделиться
HTML-код
  • Опубликовано: 16 май 2024
  • Some simple setup for nvim-dap (in particular, for elixir) as part of my neovim config rewrite. I really hope you enjoy the video :)
    Configuration: github.com/tjdevries/config.nvim
    Dap Configuration: github.com/tjdevries/config.n...
    Links
    Twitch: / teej_dv
    Twitter: / teej_dv
    Github: github.com/tjdevries
    Neovim: BTW
    #neovim #programming #lua
  • НаукаНаука

Комментарии • 68

  • @christopher8641
    @christopher8641 Месяц назад +110

    Never needed a debugger as I never write bugs but thank you for this video father. Rust btw

    • @slap2685
      @slap2685 Месяц назад +7

      Of course, writing just one line of hello world code in python and causing a bug would be terrible.

    • @christopher8641
      @christopher8641 Месяц назад

      @@slap2685 Sorry I refuse to acknowledge / associate / speak the name of languages that use whitespace and indents as syntax. I cannot believe anyone likes py____ as much as they say. My guy.. its spaces, not control flow

  • @TheLANBeforeTime-uo9ph
    @TheLANBeforeTime-uo9ph Месяц назад +16

    really enjoy these nvim 10-15min clips. I don't have time to sit through live stream sessions, but these ones help improve vim skills bit by bit, really gold. Thanks TJ!

  • @twenty-fifth420
    @twenty-fifth420 Месяц назад +18

    "hey, how do you debug your application?"
    "Oh, I just dap I on it and it knows better when to step in and out of line."

  • @riccardoshrives5881
    @riccardoshrives5881 Месяц назад +46

    dap on the haters

  • @boy4everjoy
    @boy4everjoy Месяц назад +4

    we need a 3 hour in depth tutorial on debugging on neovim lol. thank you for your hard work!

  • @frederickmichaud6783
    @frederickmichaud6783 Месяц назад

    I enjoyed watching the work on this happening live, but it’s also great to see the concise explanation like this after the fact. Thanks Teej!

  • @timkuntz8886
    @timkuntz8886 10 дней назад

    Thanks! I've been enjoying your content this past year. Keep up the great work!

  • @peteranderson7144
    @peteranderson7144 Месяц назад +3

    I'm loving these plugin videos. I'm definitely going to try and setup the SQL plugins after watching that video. Thanks for doing this, TJ.

  • @alexandersix_
    @alexandersix_ Месяц назад +3

    Huge video, awesome series. Love this kind of content from you!

  • @the_real_briel
    @the_real_briel Месяц назад +1

    This was wild timing, I was literally just battling with setting this up today and then this was posted :0 Ty for the great guide!

  • @solvecode
    @solvecode 15 дней назад

    You're one of the people i regularly watch. Your content is solid, easy to follow and you feel genuin. Because of all the guides to nvim, I'm now a user; even professional and even more I've been inspired to create my first youtube myself. Thank you.

  • @lucasefe
    @lucasefe Месяц назад

    TJ explains perfectly. I love you, dude.

  • @sarojregmi200
    @sarojregmi200 Месяц назад

    I never thought of a debugger let alone a debugger in nvim. Now I will have it setup asap. Thanks 🙏👍

  • @WillLillis
    @WillLillis Месяц назад

    Awesome stuff as always TJ, thank you!

  • @emersonbarros6815
    @emersonbarros6815 23 дня назад +1

    Lua, Neovim and Elixir, bro teej is taking the brazilian stack really serious.

  • @jatinderbraich9130
    @jatinderbraich9130 Месяц назад

    Being an elixir developer I can say this is a huge one! Thanks TJ

  • @ejreillyxyz
    @ejreillyxyz Месяц назад +1

    Love all the new neovim videos! It would be awesome to see you revisit the "how to make a neovim plugin in lua" one you did with bashbunni too. Every time I go to make a plugin I end up lost and confused in the API (make a buffer? then a window? and then do what?) but I have a smol brain so its basically to be expected. Cheers teej, I hope you do not stub your toe for many weeks.

  • @sunnyheheheh9401
    @sunnyheheheh9401 Месяц назад

    Thanks for these kind of informative videos

  • @djunho
    @djunho Месяц назад

    Nice one. I am delaying to setup of DAP forever. Now I don't have excuses anymore.

  • @darklord2222
    @darklord2222 Месяц назад

    Dap virtual text was a new one for me coming from Lvim😍

  • @maxz999
    @maxz999 Месяц назад

    I have found that the hardest part is getting the debugger working consistently. It’s way more work for me to keep my debugger working than it’s worth because logging almost always works for me. This probably depends on the language and WSL makes it even harder.
    Great video for the Neovim side of things though!

  • @yuxiang4218
    @yuxiang4218 Месяц назад

    awesome series

  • @user-qw8br2wz2z
    @user-qw8br2wz2z Месяц назад

    Nice, thanks for the useful vid

  • @warrenhenning8064
    @warrenhenning8064 Месяц назад +1

    I think this video is an excellent litmus test for whether Neovim is for you or not. Do you want to set up how you want debugging to work or do you just want to press the debug button and have your code launch in a debugger for your language? The benefit of Neovim's approach is that you can do things like have it display sensitive data as `*****` as shown at 1:25, which is super awesome and handy if you need it.

  • @james.schubert
    @james.schubert Месяц назад

    Just like TJ, all my code is exceptional.

  • @coolguy69verycool
    @coolguy69verycool Месяц назад +1

    I'll give this another go but I've struggled to set up a C debugger a few times. Every time, I get so frustrated and exhausted I just put it on the back burner and come back a few weeks later.

  • @mozartmemelord
    @mozartmemelord Месяц назад

    hi tj thanks for the video. Was wondering if you could do a video on vim/nvim concept of buffers, it would help a lot i think, this concept is still not very clear to me and I struggle to find a simple introduction to it, and your videos do the job when I struggle with something vim/nvim related.

  • @yakomisar
    @yakomisar Месяц назад

    TJ cool as ever. I have a couple of questions: 1. Do you know how to set/edit particular variable and put the value I want on the flight? and 2. Do you know how to start to debug particular test when I have bunch of them - and after start debugging it always starts from the very first test and goes one by one? The dummy decision is to comment unnecessary tests, but maybe there is a more elegant way?

  • @windowsrefund
    @windowsrefund Месяц назад

    Your colorscheme is too nice!

    • @gowthamvurimi1636
      @gowthamvurimi1636 Месяц назад +1

      The colours doesn't look out really. IMO vscode's default is by far the best one I've seen

  • @themohmand
    @themohmand Месяц назад

    This is great! I primarily work with embedded devices and use debuggers from vendors of MCUs that I am using. How would one configure nivm-DAP for something like let's say an ARM Cortex M4 MCU?

  • @fbuys
    @fbuys Месяц назад

    Thank you!

  • @ohdarlin692
    @ohdarlin692 Месяц назад +3

    You can't imagine how many hours I've suffered to make java debugger work. It is the worst time spent in my life. So miserable. But in other languages, especially low level which work with gdb or lldb everything was extremely easy.

  • @DJRanoia
    @DJRanoia Месяц назад

    Thank you for breaking this down, My virtual text seems to be showing up at the end of the line instead of the end of the variable. Where there any thing extra in the settings you enabled for this? I was able to figure it out.... Need nvim 0.10 :)

  • @latch909
    @latch909 Месяц назад

    Saw a pretty convoluted setup for node which I know has some additional adapter challenges but starting to think it doesn't have to be quite so hard

  • @cariyaputta
    @cariyaputta Месяц назад

    I debug using prints but still, thanks for the vid.

  • @marsbrain
    @marsbrain 21 день назад

    Is there a way to enable these key bindings only while that dap ui is being used? For example bind the step into, step out of, etc. to the arrow keys while debugging and then unmap once the debugger gets detached.

  • @carlosdelgadoramos9948
    @carlosdelgadoramos9948 3 часа назад

    hey TJ! what font do you use?

  • @swapstar
    @swapstar Месяц назад +1

    After like 6 months of going and on and off from Neovim, I finally have a good and working Python Debugger setup,
    Working with python virtual environments is so annoying!

  • @11WicToR11
    @11WicToR11 Месяц назад

    i personally know many people who struggle with specific debug setup with specific language. Would be very interesteed if you could go over most popular languages and how to set those up. Typescript and Rust would be definitelly top 2 but i would even like to see stuff like php

  • @prashlovessamosa
    @prashlovessamosa Месяц назад

    tj is there any way to see images in neovim in the terminal

  • @lexrupy
    @lexrupy Месяц назад

    It would be nice if you configure a Django Application on dap.

  • @theIbraDev
    @theIbraDev 17 дней назад

    Do you then install the debugger via mason?

  • @AizazShahid-ck8cn
    @AizazShahid-ck8cn Месяц назад +1

    Can you make one for Python? Maybe just a short?

  • @ThisGuyRocksLikeCrazy
    @ThisGuyRocksLikeCrazy Месяц назад

    Do you have the debugger for Java? It's really tough to debug things in Java. I wish I could just do it only for a simple test case.

  • @sumit_12393
    @sumit_12393 Месяц назад

    can you share your desk setup?

  • @justanpc7644
    @justanpc7644 Месяц назад

    Can someone share their dap config for rust

  • @MantasJurkuvenas
    @MantasJurkuvenas Месяц назад

    Hey TJ did you know that GDB manual is only 960 pages...=)

  • @akak5128
    @akak5128 Месяц назад

    I so badly want to learn how to do the "you don't need this" bit that hides the key lol

  • @architbhonsle7356
    @architbhonsle7356 Месяц назад

    Neovim can put virtual text inside a line now? I believe it was only at the end before.

    • @willernst
      @willernst Месяц назад +1

      0.10 adds inlay text.

  • @anup8672
    @anup8672 Месяц назад

    Can somebody point resources to do this for python??

  • @NeverTrust298
    @NeverTrust298 Месяц назад

    does this works for C?

  • @user-zl6om6kh9s
    @user-zl6om6kh9s Месяц назад

    Debug should be rare, for simple case just print, for complex on I reach for jetbrains, the neovim ui that has indentical font size in debug panel is too distracted

  • @mikelemon5109
    @mikelemon5109 21 день назад

    Why didn't you also setup and config one-small-step-for-vim ?

  • @conundrum2u
    @conundrum2u Месяц назад

    now I can see that I configured my DAP incorrectly, lol

  • @akshettrj
    @akshettrj Месяц назад

    Dapgo

  • @__napcakes__1911
    @__napcakes__1911 Месяц назад

    Do more of these please. How can I send you priv messages Teej? I sent one on X, maybe you don't check that inbox.

  • @joseoliveira8423
    @joseoliveira8423 Месяц назад +1

    F13?????

    • @willernst
      @willernst Месяц назад +1

      There are Fn keycodes above F12. Looks like USB HID spec has through F24. Really useful with programmable keyboard layers as you can get more unique keys to use in software mappings.

  • @onred_
    @onred_ Месяц назад

    why use a debugger when you can just use print statements ☝️🙄