simple neovim debugging setup (in 10 minutes)

  Рет қаралды 29,106

TJ DeVries

TJ DeVries

Ай бұрын

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 Ай бұрын
Never needed a debugger as I never write bugs but thank you for this video father. Rust btw
@slap2685
@slap2685 Ай бұрын
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 Ай бұрын
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 Ай бұрын
"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."
@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!
@peteranderson7144
@peteranderson7144 Ай бұрын
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.
@riccardoshrives5881
@riccardoshrives5881 Ай бұрын
dap on the haters
@boy4everjoy
@boy4everjoy Ай бұрын
we need a 3 hour in depth tutorial on debugging on neovim lol. thank you for your hard work!
@alexandersix_
@alexandersix_ Ай бұрын
Huge video, awesome series. Love this kind of content from you!
@the_real_briel
@the_real_briel Ай бұрын
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!
@timkuntz8886
@timkuntz8886 20 күн бұрын
Thanks! I've been enjoying your content this past year. Keep up the great work!
@solvecode
@solvecode 25 күн бұрын
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.
@WillLillis
@WillLillis Ай бұрын
Awesome stuff as always TJ, 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 🙏👍
@ejreillyxyz
@ejreillyxyz Ай бұрын
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.
@jatinderbraich9130
@jatinderbraich9130 Ай бұрын
Being an elixir developer I can say this is a huge one! Thanks TJ
@emersonbarros6815
@emersonbarros6815 Ай бұрын
Lua, Neovim and Elixir, bro teej is taking the brazilian stack really serious.
@sunnyheheheh9401
@sunnyheheheh9401 Ай бұрын
Thanks for these kind of informative videos
@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!
@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😍
@yuxiang4218
@yuxiang4218 Ай бұрын
awesome series
@user-qw8br2wz2z
@user-qw8br2wz2z Ай бұрын
Nice, thanks for the useful vid
@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.
@james.schubert
@james.schubert Ай бұрын
Just like TJ, all my code is exceptional.
@fbuys
@fbuys Ай бұрын
Thank you!
@windowsrefund
@windowsrefund Ай бұрын
Your colorscheme is too nice!
@gowthamvurimi1636
@gowthamvurimi1636 Ай бұрын
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?
@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 :)
@carlosdelgadoramos9948
@carlosdelgadoramos9948 9 күн бұрын
hey TJ! what font do you use?
@coolguy69verycool
@coolguy69verycool Ай бұрын
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.
@marsbrain
@marsbrain Ай бұрын
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.
@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?
@warrenhenning8064
@warrenhenning8064 Ай бұрын
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.
@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.
@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.
@AizazShahid-ck8cn
@AizazShahid-ck8cn Ай бұрын
Can you make one for Python? Maybe just a short?
@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
@MantasJurkuvenas
@MantasJurkuvenas Ай бұрын
Hey TJ did you know that GDB manual is only 960 pages...=)
@sumit_12393
@sumit_12393 Ай бұрын
can you share your desk setup?
@lexrupy
@lexrupy Ай бұрын
It would be nice if you configure a Django Application on dap.
@mikelemon5109
@mikelemon5109 Ай бұрын
Why didn't you also setup and config one-small-step-for-vim ?
@swapstar
@swapstar Ай бұрын
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!
@user-bs4gg8sq7h
@user-bs4gg8sq7h Ай бұрын
Would you mind sharing your config?
@NeverTrust298
@NeverTrust298 Ай бұрын
does this works for C?
@architbhonsle7356
@architbhonsle7356 Ай бұрын
Neovim can put virtual text inside a line now? I believe it was only at the end before.
@willernst
@willernst Ай бұрын
0.10 adds inlay text.
@prashlovessamosa
@prashlovessamosa Ай бұрын
tj is there any way to see images in neovim in the terminal
@adriansrfr
@adriansrfr 7 күн бұрын
Yazi
@akak5128
@akak5128 Ай бұрын
I so badly want to learn how to do the "you don't need this" bit that hides the key lol
@ohdarlin692
@ohdarlin692 Ай бұрын
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.
@justanpc7644
@justanpc7644 Ай бұрын
Can someone share their dap config for rust
@anup8672
@anup8672 Ай бұрын
Can somebody point resources to do this for python??
@__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.
@akshettrj
@akshettrj Ай бұрын
Dapgo
@conundrum2u
@conundrum2u Ай бұрын
now I can see that I configured my DAP incorrectly, lol
@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
@joseoliveira8423
@joseoliveira8423 Ай бұрын
F13?????
@willernst
@willernst Ай бұрын
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 ☝️🙄
My neovim autocomplete setup: explained
11:32
TJ DeVries
Рет қаралды 25 М.
DEBUG in Neovim. Like a BOSS.
9:44
DevOps Toolbox
Рет қаралды 48 М.
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 23 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 1,9 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 52 МЛН
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 105 МЛН
I'm Never Using Neovim's Terminal The Same Again
8:43
DevOps Toolbox
Рет қаралды 32 М.
Vim Dadbod - My Favorite SQL Plugin
6:01
TJ DeVries
Рет қаралды 26 М.
NEOVIM GIT PRODUCTIVITY: 2024
10:22
Ashish Alex
Рет қаралды 3,4 М.
ИДЕАЛЬНАЯ AUDI S2 COUPE 450 СИЛ.
45:13
AcademeG
Рет қаралды 342 М.
LSP Explained (in 5 Minutes)
5:06
TJ DeVries
Рет қаралды 51 М.
Learn By Building: Language Server Protocol
1:59:54
TJ DeVries
Рет қаралды 65 М.
My Forever Dev Workflow
16:02
typecraft
Рет қаралды 73 М.
Effective Neovim: Instant IDE
16:16
TJ DeVries
Рет қаралды 781 М.
Neovim Lazy Lua IDE - my simple but powerful setup for 2024
29:13
A Powerful Way To Make Editing Code In Neovim Even Better
17:48
Josean Martinez
Рет қаралды 115 М.
Samsung Galaxy Unpacked July 2024: Official Replay
1:8:53
Samsung
Рет қаралды 23 МЛН
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 6 МЛН