This helps me as I’m learning C for my university degree. Much appreciated. Keep up the great work 🤗
@kid-presentable8 ай бұрын
Just finished an Operating Systems class and was talking with my brother in law about how hard it is to debug C with just printfs, and he was confused I wasn't using GDB. My teacher never taught us it existed. I'm so mad
@thechronicler74618 ай бұрын
Never have I imagined one day I'd be debugging with minimal UI like this. Thx for the vid.
@michaelhex2 ай бұрын
I have been programming in C for 40 years and the only command I know in gdb is "where", once I see the stack trace I usually know where the issue is. The best tool for debugging C is your brain.
@NeuralNine2 ай бұрын
Agree!
@Joao-oo8yj14 күн бұрын
"The best tool for debugging C is your brain" -- John Carmack wouldn't agree with that statement.
@michaelhex14 күн бұрын
@@Joao-oo8yj Each to his own. It works for me, never had any problems debugging code for over 40 years.
@edwardmacnab354 Жыл бұрын
at 9:14 , it is an unfortunate choice to have your file named main.c because if the file were called hello.c for example you would also use >disassemble main and not >disassemble hello because there is an inherent assumption in the way you presented it !
@davidho12582 жыл бұрын
how did you know i needed this 😇
@zeekthegeek453811 ай бұрын
cheers mate, helped me out a ton.
@lennuard_69982 жыл бұрын
would be cool if you could more in depth with C
@esimitley47296 ай бұрын
Thank you, very useful for neophyte :)
@michaelciyke Жыл бұрын
So nice a guide. Loved it! And I like your microphone. You should have skipped the part of writing the actual code since it's not the point of the guide. It is also nice that you added that skipping ability so one can just go straight to debugging. Still some users will miss the video because of the length not knowing it is in fact organized in chapters. I'm speaking of those who need just a focused video on debugging.
@johnwight60413 ай бұрын
What is the nv command do? Is that a text editor like vim or nano? Not familiar
@Wutheheooooo3 ай бұрын
neovim, likely an alias for nvim, not actual name in the bin I think.
@smashy152 Жыл бұрын
Is it possible to have gdb display all relevant variables to the current scope(or global and local) and update them with each step like vscode does? or do you have to type print for each variable every step?
@Kapkar10 ай бұрын
Do we need GDB ? Visual studio code has good debugging system with breakpoints that you mentioned for Pyhton. So should we use VSCode ?
@roymarshall_6 ай бұрын
Sometimes you don't have a choice
@Kapkar6 ай бұрын
@@roymarshall_ Yeah you're right mate
@salsamancer2 жыл бұрын
debugging C on your PC is one thing. The real "fun" starts when you try to debug an embedded program that you burned to an IC...
@shadowrealm8937 Жыл бұрын
How did you copypasted scanf lines?
@lawrencedoliveiro91042 жыл бұрын
6:47 Use a pager.
@enrgpro2 жыл бұрын
Keep up the good work
@digitalrew7 ай бұрын
Cool, thanks, I love this video, I learned new good stuff! Actually I got to this video, because after several tries, I couldn't seem to make the VScode work properly... I know I'm a noob...
@nareshtechweb930 Жыл бұрын
what is nv IDEs ❓
@facundoguinazu3542 Жыл бұрын
Does this works as well with c++?
@knowledgedose19562 жыл бұрын
cool, thank you for dedication. Do you consider making videos about Rust or Go in future?
@meshlife234610 ай бұрын
NICE VIDEO 😊😊
@panoskappos27358 ай бұрын
what IDE is this ?
@CliffordMacpherson-l8e4 ай бұрын
Isobel Walks
@ADwaMoviesandMusicsproduction Жыл бұрын
not a single person shows the first step, where are you opening the file or anything like that, there is no help really for gdb beginner, how to use text editor, gnu or shell together, I never heard of gdb and everyone says you use this comman and install gdb, only minigw video, explains atleast the first part
@edwardmacnab354 Жыл бұрын
yes it all depends on that one rare video. For example , I couldn't compile a simple hello world and the error was that there was no stdio.h which kinda threw me . Then I read that to compile the source for glibc you needed glibc , which catch 22 threw me , then I saw this one vid that said do sudo apt install build-essentials and , lo and behold HELLO WORLD !! Weird that so much key info is squirreled away so deep .
@recklessvelociraptor2579 Жыл бұрын
is there any good gui alternatives for gdb?
@recklessvelociraptor2579 Жыл бұрын
I think it is uses gdb by default? So I can use all gdb commands in there? Like reverse step?@soufiane_dev
@SophyDavid-x4o3 ай бұрын
Melvin Light
@Jonathan-ru9zl Жыл бұрын
Hi! Why actually going that way if you have codeblocks or eclipse or other IDEs?
@AntoinetteCongreve-n3h3 ай бұрын
Nichole Route
@NewtonAurora-q3l3 ай бұрын
Antonietta Summit
@ConnorDuncan-g6r3 ай бұрын
Pollich Fall
@JimmyDalhover-b1q3 ай бұрын
Baumbach Curve
@WalshAntonia-l8n3 ай бұрын
Effertz Hill
@ArchibaldAnnabelle-z3e4 ай бұрын
Rickie Tunnel
@exnihilonihilfit63162 жыл бұрын
6:38 My god, doesn't your console have a scrollbar?! 😂
@AndreJones-l6w3 ай бұрын
Keagan Dam
@DavidYedda-w9y4 ай бұрын
Tromp Dam
@DeniseClark-i2x4 ай бұрын
Hayes Gateway
@JosephineParks-x3r4 ай бұрын
Tromp Ville
@DefoeBrian-x9m3 ай бұрын
Schinner Station
@DebraDebra-g2j4 ай бұрын
Armstrong Ramp
@YunusSahin-h9j4 ай бұрын
Elvie Crescent
@SinclairHuxley-w8j4 ай бұрын
McLaughlin Shoal
@AnnJones-l3h4 ай бұрын
Conroy Station
@JaneLisa-f9w4 ай бұрын
Chaya Way
@DianaOwen-g6d3 ай бұрын
Heathcote Mountains
@JaredDodd-d1e3 ай бұрын
Ferne Landing
@MichelleRobinson-o5j3 ай бұрын
Rolfson Underpass
@MableCheam-p2y4 ай бұрын
Ignacio Extension
@EricaWilson-q6v3 ай бұрын
Dayna Club
@JohnLattimore-z3l4 ай бұрын
Wallace Mountains
@PamelaWoods-y9d3 ай бұрын
Travis Ferry
@MadgeAlston-u2g4 ай бұрын
Roberts Radial
@BartlettJeames-u2d3 ай бұрын
Bergstrom Alley
@CherylRager-o4v3 ай бұрын
Margaretta Alley
@edwardmacnab354 Жыл бұрын
you might have said that in >nv main.c at the bash prompt nv is a custom alias that you've set up and that to terminate the shell running the c program you use ^c or ctrl + c and you probably should have cited all the documentation sites for gdb and to really scare people gcc , nano , and glibc . Actually I have learned that ^d or ctrl + d is the proper way to terminate