simple neovim debugging setup (in 10 minutes)

Поделиться
HTML-код
  • Опубликовано: 18 ноя 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/tjd...
    Dap Configuration: github.com/tjd...
    Links
    Twitch: / teej_dv
    Twitter: / teej_dv
    Github: github.com/tjd...
    Neovim: BTW
    #neovim #programming #lua

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

  • @christopher8641
    @christopher8641 6 месяцев назад +211

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

    • @slap2685
      @slap2685 6 месяцев назад +24

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

    • @christopher8641
      @christopher8641 6 месяцев назад

      @@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

    • @cybern9ne
      @cybern9ne 2 месяца назад +3

      You don't write bugs because you don't write programs.😂

    • @justpatrick_
      @justpatrick_ 2 месяца назад

      Easy Rust Chad W

  • @TheLANBeforeTime-uo9ph
    @TheLANBeforeTime-uo9ph 6 месяцев назад +31

    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!

    • @adampaul7905
      @adampaul7905 3 месяца назад

      me too I agree. There are very productive video.

  • @boy4everjoy
    @boy4everjoy 6 месяцев назад +7

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

  • @twenty-fifth420
    @twenty-fifth420 6 месяцев назад +28

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

  • @peteranderson7144
    @peteranderson7144 6 месяцев назад +4

    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.

  • @the_real_briel
    @the_real_briel 6 месяцев назад +3

    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 5 месяцев назад

    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.

  • @emersonbarros6815
    @emersonbarros6815 5 месяцев назад +1

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

  • @riccardoshrives5881
    @riccardoshrives5881 6 месяцев назад +49

    dap on the haters

  • @ejreillyxyz
    @ejreillyxyz 5 месяцев назад +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.

  • @alexandersix_
    @alexandersix_ 6 месяцев назад +3

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

  • @frederickmichaud6783
    @frederickmichaud6783 6 месяцев назад

    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 5 месяцев назад +1

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

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

      Wow! Thanks for the super chat :) sorry. I didn't see this earlier!

  • @nemethda
    @nemethda 3 месяца назад

    I'm loving these type of content, you are a legend TJ thanks so much

  • @maxz999
    @maxz999 6 месяцев назад

    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!

  • @jatinderbraich9130
    @jatinderbraich9130 6 месяцев назад

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

  • @sarojregmi200
    @sarojregmi200 6 месяцев назад

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

  • @djunho
    @djunho 6 месяцев назад

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

  • @lucasefe
    @lucasefe 6 месяцев назад

    TJ explains perfectly. I love you, dude.

  • @warrenhenning8064
    @warrenhenning8064 6 месяцев назад +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.

  • @WillLillis
    @WillLillis 6 месяцев назад

    Awesome stuff as always TJ, thank you!

  • @darklord2222
    @darklord2222 6 месяцев назад

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

  • @coolguy69verycool
    @coolguy69verycool 6 месяцев назад +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.

  • @yakomisar
    @yakomisar 6 месяцев назад

    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?

  • @swapstar
    @swapstar 6 месяцев назад +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!

  • @themohmand
    @themohmand 6 месяцев назад

    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?

  • @11WicToR11
    @11WicToR11 6 месяцев назад

    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

  • @james.schubert
    @james.schubert 5 месяцев назад

    Just like TJ, all my code is exceptional.

  • @sunnyheheheh9401
    @sunnyheheheh9401 6 месяцев назад

    Thanks for these kind of informative videos

  • @AizazShahid-ck8cn
    @AizazShahid-ck8cn 5 месяцев назад +1

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

  • @windowsrefund
    @windowsrefund 6 месяцев назад

    Your colorscheme is too nice!

    • @gowthamvurimi1636
      @gowthamvurimi1636 6 месяцев назад +1

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

  • @marsbrain
    @marsbrain 5 месяцев назад

    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.

  • @MohdZakaria-b4g
    @MohdZakaria-b4g 3 месяца назад

    Hi TJ, can we actually do cscope inside telescope?

  • @latch909
    @latch909 6 месяцев назад

    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

  • @WashingtonUrsula-v6s
    @WashingtonUrsula-v6s Месяц назад

    Stark Brooks

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

    how would you setup dap to use the visidata python library?

  • @ohdarlin692
    @ohdarlin692 6 месяцев назад +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 6 месяцев назад

    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 :)

  • @ThisGuyRocksLikeCrazy
    @ThisGuyRocksLikeCrazy 6 месяцев назад

    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.

  • @yuxiang4218
    @yuxiang4218 6 месяцев назад

    awesome series

  • @mikelemon5109
    @mikelemon5109 5 месяцев назад

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

  • @CynthiaMartinez-z1n
    @CynthiaMartinez-z1n Месяц назад

    Predovic Spurs

  • @АлексейАгеев-я7ц
    @АлексейАгеев-я7ц 6 месяцев назад

    Nice, thanks for the useful vid

  • @cariyaputta
    @cariyaputta 6 месяцев назад

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

  • @MantasJurkuvenas
    @MantasJurkuvenas 5 месяцев назад

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

  • @architbhonsle7356
    @architbhonsle7356 6 месяцев назад

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

    • @willernst
      @willernst 6 месяцев назад +1

      0.10 adds inlay text.

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

    Selina Expressway

  • @ItsBarmanji
    @ItsBarmanji 2 месяца назад

    Hey! What keyboard layout you use btw?

  • @HeikeDeming-y8p
    @HeikeDeming-y8p Месяц назад

    Chadd Parkway

  • @sumit_12393
    @sumit_12393 6 месяцев назад

    can you share your desk setup?

  • @thewhizhub5715
    @thewhizhub5715 3 месяца назад

    Can you please do a video on neovim with c++

  • @akak5128
    @akak5128 6 месяцев назад

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

  • @fbuys
    @fbuys 6 месяцев назад

    Thank you!

  • @peql1521
    @peql1521 2 месяца назад

    Hi, I subbed after your most recent appearance on the primetime :), please can you spread your opinion more on youtube.
    I am confident that your voice should be heard by most people and you should expand to any and all topics, your opinion matters a lot in an ocean of bots and beginners trying to capitalise off their learning.
    also I guess I started learning neovim now, thanks? maybe?

  • @carlosdelgadoramos9948
    @carlosdelgadoramos9948 4 месяца назад

    hey TJ! what font do you use?

  • @JakobKenda
    @JakobKenda 2 месяца назад

    does ocaml have a dap?

  • @lexrupy
    @lexrupy 6 месяцев назад

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

  • @prashlovessamosa
    @prashlovessamosa 5 месяцев назад

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

  • @GeorgeMann-v9x
    @GeorgeMann-v9x Месяц назад

    Hane Shores

  • @fxnvcn-x4l
    @fxnvcn-x4l 2 месяца назад

    Roxanne Throughway

  • @SandraDillon-d3c
    @SandraDillon-d3c 2 месяца назад

    Garrison Track

  • @DavyCarnegie-j1c
    @DavyCarnegie-j1c Месяц назад

    Doyle Track

  • @anup8672
    @anup8672 6 месяцев назад

    Can somebody point resources to do this for python??

  • @DeborahThompson-r5d
    @DeborahThompson-r5d Месяц назад

    Marjorie Fort

  • @justanpc7644
    @justanpc7644 6 месяцев назад

    Can someone share their dap config for rust

  • @RuthBaldwin-z6u
    @RuthBaldwin-z6u Месяц назад

    Doyle Common

  • @__napcakes__1911
    @__napcakes__1911 6 месяцев назад

    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.

  • @ErnestCornelia-v5b
    @ErnestCornelia-v5b 2 месяца назад

    Steuber Ramp

  • @GoldYvonne-r9o
    @GoldYvonne-r9o 2 месяца назад

    Ledner Highway

  • @谢智斌-q9l
    @谢智斌-q9l 6 месяцев назад

    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

  • @joseoliveira8423
    @joseoliveira8423 6 месяцев назад +1

    F13?????

    • @willernst
      @willernst 6 месяцев назад +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.

  • @AdelaideHobart-b9g
    @AdelaideHobart-b9g Месяц назад

    Corkery Springs

  • @conundrum2u
    @conundrum2u 6 месяцев назад

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

  • @NeverTrust298
    @NeverTrust298 6 месяцев назад

    does this works for C?

  • @DavidAdams-u5v
    @DavidAdams-u5v 2 месяца назад

    Whitney River

  • @KennanMichelle-u7j
    @KennanMichelle-u7j Месяц назад

    Yvette Curve

  • @HarrimanNewman-t3b
    @HarrimanNewman-t3b Месяц назад

    Maggio Light

  • @WilliamJohnson-v2n
    @WilliamJohnson-v2n Месяц назад

    Makayla Drives

  • @DeanJackson-b7t
    @DeanJackson-b7t Месяц назад

    Bruen Glens

  • @JuliusHunter-p7j
    @JuliusHunter-p7j Месяц назад

    Schultz Crest

  • @HerminiaAntonetti-b5s
    @HerminiaAntonetti-b5s Месяц назад

    Tito Green

  • @LoretaSiver-q8e
    @LoretaSiver-q8e 2 месяца назад

    Bahringer Row

  • @RutherfordCamp-p9b
    @RutherfordCamp-p9b Месяц назад

    Heidenreich Lock

  • @LilyNina-d9z
    @LilyNina-d9z Месяц назад

    Grant Lock

  • @EdenRita-d8z
    @EdenRita-d8z Месяц назад

    Flatley Estate

  • @KennedyGavin-o9t
    @KennedyGavin-o9t Месяц назад

    Leannon Stravenue

  • @ColcloughBart-f5b
    @ColcloughBart-f5b Месяц назад

    Rosalee Wall

  • @GregoryBoyd-s1n
    @GregoryBoyd-s1n Месяц назад

    Liliane Estate

  • @TravisLinn-g1u
    @TravisLinn-g1u 2 месяца назад

    Shana Wall

  • @MacAdamDylan-j9v
    @MacAdamDylan-j9v Месяц назад

    Odessa Street

  • @TerryEbert-z3z
    @TerryEbert-z3z Месяц назад

    Jasen Lodge

  • @JoeHuntley-n1g
    @JoeHuntley-n1g Месяц назад

    Lowe Unions

  • @PulitzerPearl-g3d
    @PulitzerPearl-g3d Месяц назад

    Isom Road

  • @AledkVictoria-v4x
    @AledkVictoria-v4x Месяц назад

    Hamill Drive

  • @FrancisAugus-k1m
    @FrancisAugus-k1m 2 месяца назад

    Fatima Mission

  • @JerryHayden-z6q
    @JerryHayden-z6q 2 месяца назад

    Carey Ports

  • @AbeTracy-n2g
    @AbeTracy-n2g Месяц назад

    Clare Views

  • @LannySibilia-l5x
    @LannySibilia-l5x 2 месяца назад

    Hoppe Turnpike

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

    Mante Drive

  • @ThurmanMinus-m3f
    @ThurmanMinus-m3f Месяц назад

    Nienow Divide