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
Never needed a debugger as I never write bugs but thank you for this video father. Rust btw
Of course, writing just one line of hello world code in python and causing a bug would be terrible.
@@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
You don't write bugs because you don't write programs.😂
Easy Rust Chad W
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!
me too I agree. There are very productive video.
we need a 3 hour in depth tutorial on debugging on neovim lol. thank you for your hard work!
"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."
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.
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!
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.
Lua, Neovim and Elixir, bro teej is taking the brazilian stack really serious.
dap on the haters
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.
Huge video, awesome series. Love this kind of content from you!
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!
Thanks! I've been enjoying your content this past year. Keep up the great work!
Wow! Thanks for the super chat :) sorry. I didn't see this earlier!
I'm loving these type of content, you are a legend TJ thanks so much
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!
Being an elixir developer I can say this is a huge one! Thanks TJ
I never thought of a debugger let alone a debugger in nvim. Now I will have it setup asap. Thanks 🙏👍
Nice one. I am delaying to setup of DAP forever. Now I don't have excuses anymore.
TJ explains perfectly. I love you, dude.
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.
Awesome stuff as always TJ, thank you!
Dap virtual text was a new one for me coming from Lvim😍
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.
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?
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!
Would you mind sharing your config?
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?
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
Just like TJ, all my code is exceptional.
Thanks for these kind of informative videos
Can you make one for Python? Maybe just a short?
Your colorscheme is too nice!
The colours doesn't look out really. IMO vscode's default is by far the best one I've seen
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.
Hi TJ, can we actually do cscope inside telescope?
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
Stark Brooks
how would you setup dap to use the visidata python library?
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.
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 :)
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.
awesome series
Why didn't you also setup and config one-small-step-for-vim ?
Predovic Spurs
Nice, thanks for the useful vid
I debug using prints but still, thanks for the vid.
Hey TJ did you know that GDB manual is only 960 pages...=)
Neovim can put virtual text inside a line now? I believe it was only at the end before.
0.10 adds inlay text.
Selina Expressway
Hey! What keyboard layout you use btw?
Chadd Parkway
can you share your desk setup?
Can you please do a video on neovim with c++
I so badly want to learn how to do the "you don't need this" bit that hides the key lol
Thank you!
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?
hey TJ! what font do you use?
does ocaml have a dap?
It would be nice if you configure a Django Application on dap.
tj is there any way to see images in neovim in the terminal
Yazi
Hane Shores
Roxanne Throughway
Garrison Track
Doyle Track
Can somebody point resources to do this for python??
Marjorie Fort
Can someone share their dap config for rust
Doyle Common
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.
Steuber Ramp
Ledner Highway
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
F13?????
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.
Corkery Springs
now I can see that I configured my DAP incorrectly, lol
does this works for C?
Whitney River
Yvette Curve
Maggio Light
Makayla Drives
Bruen Glens
Schultz Crest
Tito Green
Bahringer Row
Heidenreich Lock
Grant Lock
Flatley Estate
Leannon Stravenue
Rosalee Wall
Liliane Estate
Shana Wall
Odessa Street
Jasen Lodge
Lowe Unions
Isom Road
Hamill Drive
Fatima Mission
Carey Ports
Clare Views
Hoppe Turnpike
Mante Drive
Nienow Divide