Debugging C Programs with GDB

แชร์
ฝัง

ความคิดเห็น • 130

  • @tibish
    @tibish 2 ปีที่แล้ว +14

    This helps me as I’m learning C for my university degree. Much appreciated. Keep up the great work 🤗

  • @thechronicler7461
    @thechronicler7461 4 หลายเดือนก่อน +1

    Never have I imagined one day I'd be debugging with minimal UI like this. Thx for the vid.

  • @edwardmacnab354
    @edwardmacnab354 ปีที่แล้ว +10

    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 !

  • @kid-presentable
    @kid-presentable 4 หลายเดือนก่อน +1

    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

  • @davidho1258
    @davidho1258 2 ปีที่แล้ว +4

    how did you know i needed this 😇

  • @michaelciyke
    @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.

  • @lennuard_6998
    @lennuard_6998 2 ปีที่แล้ว +2

    would be cool if you could more in depth with C

  • @salsamancer
    @salsamancer ปีที่แล้ว +2

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

  • @knowledgedose1956
    @knowledgedose1956 2 ปีที่แล้ว

    cool, thank you for dedication. Do you consider making videos about Rust or Go in future?

  • @johnwight6041
    @johnwight6041 13 วันที่ผ่านมา

    What is the nv command do? Is that a text editor like vim or nano? Not familiar

  • @zeekthegeek4538
    @zeekthegeek4538 7 หลายเดือนก่อน +1

    cheers mate, helped me out a ton.

  • @esimitley4729
    @esimitley4729 3 หลายเดือนก่อน

    Thank you, very useful for neophyte :)

  • @Kapkar
    @Kapkar 6 หลายเดือนก่อน

    Do we need GDB ? Visual studio code has good debugging system with breakpoints that you mentioned for Pyhton. So should we use VSCode ?

    • @roymarshall_
      @roymarshall_ 2 หลายเดือนก่อน +1

      Sometimes you don't have a choice

    • @Kapkar
      @Kapkar 2 หลายเดือนก่อน

      @@roymarshall_ Yeah you're right mate

  • @digitalrew
    @digitalrew 4 หลายเดือนก่อน

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

  • @ADwaMoviesandMusicsproduction
    @ADwaMoviesandMusicsproduction ปีที่แล้ว +4

    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
      @edwardmacnab354 ปีที่แล้ว +1

      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 .

  • @edwardmacnab354
    @edwardmacnab354 ปีที่แล้ว +2

    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

  • @smashy152
    @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?

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 2 ปีที่แล้ว +2

    6:47 Use a pager.

  • @Jonathan-ru9zl
    @Jonathan-ru9zl ปีที่แล้ว +1

    Hi! Why actually going that way if you have codeblocks or eclipse or other IDEs?

  • @shadowrealm8937
    @shadowrealm8937 ปีที่แล้ว

    How did you copypasted scanf lines?

  • @enrgpro
    @enrgpro 2 ปีที่แล้ว

    Keep up the good work

  • @shadowrealm8937
    @shadowrealm8937 ปีที่แล้ว

    How to make line numbers to appear in my vim? Nwm those are not the line numbers what those numbers even represent?

  • @CliffordMacpherson-l8e
    @CliffordMacpherson-l8e 21 วันที่ผ่านมา

    Isobel Walks

  • @JimmyDalhover-b1q
    @JimmyDalhover-b1q 12 วันที่ผ่านมา

    Baumbach Curve

  • @AntoinetteCongreve-n3h
    @AntoinetteCongreve-n3h 23 ชั่วโมงที่ผ่านมา

    Nichole Route

  • @NewtonAurora-q3l
    @NewtonAurora-q3l 12 วันที่ผ่านมา

    Antonietta Summit

  • @meshlife2346
    @meshlife2346 7 หลายเดือนก่อน

    NICE VIDEO 😊😊

  • @facundoguinazu3542
    @facundoguinazu3542 10 หลายเดือนก่อน

    Does this works as well with c++?

  • @ArchibaldAnnabelle-z3e
    @ArchibaldAnnabelle-z3e 23 วันที่ผ่านมา

    Rickie Tunnel

  • @YunusSahin-h9j
    @YunusSahin-h9j 26 วันที่ผ่านมา

    Elvie Crescent

  • @BarbaraGarcia-u4j
    @BarbaraGarcia-u4j 13 วันที่ผ่านมา

    Bartoletti Extension

  • @DebraDebra-g2j
    @DebraDebra-g2j หลายเดือนก่อน

    Armstrong Ramp

  • @WalshAntonia-l8n
    @WalshAntonia-l8n 3 วันที่ผ่านมา

    Effertz Hill

  • @SinclairHuxley-w8j
    @SinclairHuxley-w8j 14 วันที่ผ่านมา

    McLaughlin Shoal

  • @JaredDodd-d1e
    @JaredDodd-d1e 19 ชั่วโมงที่ผ่านมา

    Ferne Landing

  • @MichelleRobinson-o5j
    @MichelleRobinson-o5j วันที่ผ่านมา

    Rolfson Underpass

  • @MableCheam-p2y
    @MableCheam-p2y 25 วันที่ผ่านมา

    Ignacio Extension

  • @ConnorDuncan-g6r
    @ConnorDuncan-g6r 10 วันที่ผ่านมา

    Pollich Fall

  • @AndreJones-l6w
    @AndreJones-l6w 6 วันที่ผ่านมา

    Keagan Dam

  • @DianaOwen-g6d
    @DianaOwen-g6d 12 วันที่ผ่านมา

    Heathcote Mountains

  • @DeniseClark-i2x
    @DeniseClark-i2x 21 วันที่ผ่านมา

    Hayes Gateway

  • @DavidYedda-w9y
    @DavidYedda-w9y 28 วันที่ผ่านมา

    Tromp Dam

  • @AnnJones-l3h
    @AnnJones-l3h 22 วันที่ผ่านมา

    Conroy Station

  • @JosephineParks-x3r
    @JosephineParks-x3r 17 วันที่ผ่านมา

    Tromp Ville

  • @panoskappos2735
    @panoskappos2735 5 หลายเดือนก่อน

    what IDE is this ?

  • @recklessvelociraptor2579
    @recklessvelociraptor2579 ปีที่แล้ว

    is there any good gui alternatives for gdb?

    • @soufiane_dev
      @soufiane_dev ปีที่แล้ว

      You can integrate gdb with vscode

    • @recklessvelociraptor2579
      @recklessvelociraptor2579 ปีที่แล้ว

      I think it is uses gdb by default? So I can use all gdb commands in there? Like reverse step?@@soufiane_dev

  • @JohnLattimore-z3l
    @JohnLattimore-z3l 18 วันที่ผ่านมา

    Wallace Mountains

  • @exnihilonihilfit6316
    @exnihilonihilfit6316 ปีที่แล้ว

    6:38 My god, doesn't your console have a scrollbar?! 😂

  • @BellamyDunn-o9o
    @BellamyDunn-o9o 9 วันที่ผ่านมา

    Luella Crossroad

  • @ChestertonSophia-h2b
    @ChestertonSophia-h2b 8 วันที่ผ่านมา

    Mckayla Springs

  • @PamelaWoods-y9d
    @PamelaWoods-y9d 13 วันที่ผ่านมา

    Travis Ferry

  • @JasperEli-w4z
    @JasperEli-w4z 5 วันที่ผ่านมา

    Doug Freeway

  • @DefoeBrian-x9m
    @DefoeBrian-x9m 6 วันที่ผ่านมา

    Schinner Station

  • @CarolynMathewes-k1m
    @CarolynMathewes-k1m 16 วันที่ผ่านมา

    Steuber Tunnel

  • @soufiane_dev
    @soufiane_dev ปีที่แล้ว

    But you can integrate gdb in vscode

  • @LarryPerez-h3x
    @LarryPerez-h3x 6 วันที่ผ่านมา

    Mckenzie Throughway

  • @MadgeAlston-u2g
    @MadgeAlston-u2g 26 วันที่ผ่านมา

    Roberts Radial

  • @CherylRager-o4v
    @CherylRager-o4v 12 วันที่ผ่านมา

    Margaretta Alley

  • @EricWhite-p5j
    @EricWhite-p5j 9 วันที่ผ่านมา

    Barton Inlet

  • @guilherme5094
    @guilherme5094 2 ปีที่แล้ว

    Thanks👍

  • @WilhelminaDunn-v1h
    @WilhelminaDunn-v1h 2 วันที่ผ่านมา

    Glennie Freeway

  • @RobinHerbert-s2x
    @RobinHerbert-s2x 4 วันที่ผ่านมา

    Emile Lakes

  • @DorothyBazaldua-x2s
    @DorothyBazaldua-x2s 8 วันที่ผ่านมา

    Roscoe Hills

  • @VenusCarls-k8l
    @VenusCarls-k8l 19 วันที่ผ่านมา

    Cletus Park

  • @JaneLisa-f9w
    @JaneLisa-f9w 20 วันที่ผ่านมา

    Chaya Way

  • @AugustineJoyce-m6i
    @AugustineJoyce-m6i 12 วันที่ผ่านมา

    John Roads

  • @GeraldoWright-j8f
    @GeraldoWright-j8f 16 วันที่ผ่านมา

    Benedict Loop

  • @JackScarbrough-i9e
    @JackScarbrough-i9e 24 วันที่ผ่านมา

    Webster Crescent

  • @BobbieRigali-x1l
    @BobbieRigali-x1l 17 วันที่ผ่านมา

    Edwina Rest

  • @CookeAlexander-w4p
    @CookeAlexander-w4p 2 วันที่ผ่านมา

    Marilou Light

  • @GaryWhite-p1k
    @GaryWhite-p1k 2 วันที่ผ่านมา

    Skiles Cliff

  • @WmManns-f1z
    @WmManns-f1z 16 วันที่ผ่านมา

    Remington Stream

  • @ClementLestourgeon-c3h
    @ClementLestourgeon-c3h 27 วันที่ผ่านมา

    Mathew Trail

  • @ReynoldsPatricia-p5n
    @ReynoldsPatricia-p5n 24 วันที่ผ่านมา

    Lind Run

  • @DullesIngemar-u6r
    @DullesIngemar-u6r 12 วันที่ผ่านมา

    Cole Lane

  • @SheridanAugustine-k5u
    @SheridanAugustine-k5u 2 วันที่ผ่านมา

    Martina Extensions

  • @nareshtechweb930
    @nareshtechweb930 ปีที่แล้ว

    what is nv IDEs ❓

  • @MaloryChasel-l5r
    @MaloryChasel-l5r 27 วันที่ผ่านมา

    Amya Bridge

  • @JulianaRita-x1n
    @JulianaRita-x1n 23 วันที่ผ่านมา

    Smitham Cove

  • @JoeEartha-n4g
    @JoeEartha-n4g 5 วันที่ผ่านมา

    Wendy Road

  • @RebeccaBarrett-b8q
    @RebeccaBarrett-b8q 15 วันที่ผ่านมา

    Macejkovic Club

  • @AdelaIngrid-e1u
    @AdelaIngrid-e1u 28 วันที่ผ่านมา

    Lehner Mountains

  • @LeonardRiley-y6z
    @LeonardRiley-y6z 23 วันที่ผ่านมา

    Libbie Street

  • @EricaWilson-q6v
    @EricaWilson-q6v 6 วันที่ผ่านมา

    Dayna Club

  • @TrishMaury-q5o
    @TrishMaury-q5o 16 วันที่ผ่านมา

    Emelia Points

  • @VeblenDora-t7s
    @VeblenDora-t7s 12 วันที่ผ่านมา

    Schinner Valley

  • @JoelRoderick-o6y
    @JoelRoderick-o6y 20 วันที่ผ่านมา

    Chester Vista

  • @EllenOrville-q5h
    @EllenOrville-q5h 5 วันที่ผ่านมา

    Gusikowski Tunnel

  • @BlumeDenise-x9s
    @BlumeDenise-x9s 17 วันที่ผ่านมา

    Marquis Station

  • @piuse-q2x
    @piuse-q2x 22 วันที่ผ่านมา

    Carleton Fort

  • @AliceSchwartz-o1y
    @AliceSchwartz-o1y 12 วันที่ผ่านมา

    Kirlin Harbors

  • @TressieSelf-r7x
    @TressieSelf-r7x 25 วันที่ผ่านมา

    Reinger Circle

  • @sohanpal9682
    @sohanpal9682 22 วันที่ผ่านมา

    Flatley Flats

  • @RaymondEdison-c1v
    @RaymondEdison-c1v 25 วันที่ผ่านมา

    Grant Turnpike

  • @HalifaxBlake-k8j
    @HalifaxBlake-k8j 17 วันที่ผ่านมา

    Drew Corner

  • @HeribertoThomas-g6e
    @HeribertoThomas-g6e 20 วันที่ผ่านมา

    Langosh Groves

  • @NewtonDana-b1r
    @NewtonDana-b1r หลายเดือนก่อน

    Krajcik Grove

  • @NsphsjIss-b6j
    @NsphsjIss-b6j 10 วันที่ผ่านมา

    Watsica Ranch

  • @RichardRichard-h2g
    @RichardRichard-h2g 27 วันที่ผ่านมา

    Bins Locks

  • @AlbertGoughnour-m8w
    @AlbertGoughnour-m8w 2 วันที่ผ่านมา

    Hauck Manors