Debugging C Programs with GDB

  Рет қаралды 37,105

NeuralNine

NeuralNine

Күн бұрын

In this video, we learn how to debug C programs with GDB.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Пікірлер: 36
@tibish
@tibish Жыл бұрын
This helps me as I’m learning C for my university degree. Much appreciated. Keep up the great work 🤗
@thechronicler7461
@thechronicler7461 27 күн бұрын
Never have I imagined one day I'd be debugging with minimal UI like this. Thx for the vid.
@kid-presentable
@kid-presentable 24 күн бұрын
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 Жыл бұрын
how did you know i needed this 😇
@edwardmacnab354
@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 !
@michaelciyke
@michaelciyke 11 ай бұрын
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.
@zeekthegeek4538
@zeekthegeek4538 3 ай бұрын
cheers mate, helped me out a ton.
@enrgpro
@enrgpro Жыл бұрын
Keep up the good work
@lennuard_6998
@lennuard_6998 Жыл бұрын
would be cool if you could more in depth with C
@knowledgedose1956
@knowledgedose1956 Жыл бұрын
cool, thank you for dedication. Do you consider making videos about Rust or Go in future?
@salsamancer
@salsamancer Жыл бұрын
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...
@digitalrew
@digitalrew 13 күн бұрын
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...
@guilherme5094
@guilherme5094 Жыл бұрын
Thanks👍
@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?
@meshlife2346
@meshlife2346 3 ай бұрын
NICE VIDEO 😊😊
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Жыл бұрын
6:47 Use a pager.
@Kapkar
@Kapkar 2 ай бұрын
Do we need GDB ? Visual studio code has good debugging system with breakpoints that you mentioned for Pyhton. So should we use VSCode ?
@edwardmacnab354
@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
@shadowrealm8937
@shadowrealm8937 11 ай бұрын
How did you copypasted scanf lines?
@shadowrealm8937
@shadowrealm8937 11 ай бұрын
How to make line numbers to appear in my vim? Nwm those are not the line numbers what those numbers even represent?
@facundoguinazu3542
@facundoguinazu3542 6 ай бұрын
Does this works as well with c++?
@exnihilonihilfit6316
@exnihilonihilfit6316 Жыл бұрын
6:38 My god, doesn't your console have a scrollbar?! 😂
@ShahJahan_NNN
@ShahJahan_NNN Жыл бұрын
Please make a crash course on using telethon for telegram I want to make Bots, But very confused in learning from docs Specifically, make on joining voice chat in telegram
@rocky1722
@rocky1722 Жыл бұрын
Thanks ✨✨✨
@soufiane_dev
@soufiane_dev 8 ай бұрын
But you can integrate gdb in vscode
@philtoa334
@philtoa334 Жыл бұрын
Thx_.
@panoskappos2735
@panoskappos2735 Ай бұрын
what IDE is this ?
@ADwaMoviesandMusicsproduction
@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
@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 .
@Jonathan-ru9zl
@Jonathan-ru9zl 9 ай бұрын
Hi! Why actually going that way if you have codeblocks or eclipse or other IDEs?
@nareshtechweb930
@nareshtechweb930 8 ай бұрын
what is nv IDEs ❓
@soufiane_dev
@soufiane_dev 8 ай бұрын
maybe neovim
@recklessvelociraptor2579
@recklessvelociraptor2579 8 ай бұрын
is there any good gui alternatives for gdb?
@soufiane_dev
@soufiane_dev 8 ай бұрын
You can integrate gdb with vscode
@recklessvelociraptor2579
@recklessvelociraptor2579 8 ай бұрын
I think it is uses gdb by default? So I can use all gdb commands in there? Like reverse step?@@soufiane_dev
GDB Tutorial
55:12
CS 246
Рет қаралды 62 М.
GDB Debugging: How to Debug a C/C++ program
18:07
pikuma
Рет қаралды 35 М.
Which one of them is cooler?😎 @potapova_blog
00:45
Filaretiki
Рет қаралды 7 МЛН
When Jax'S Love For Pomni Is Prevented By Pomni'S Door 😂️
00:26
🍕Пиццерия FNAF в реальной жизни #shorts
00:41
everything is open source if you can reverse engineer (try it RIGHT NOW!)
13:56
Low Level Learning
Рет қаралды 1,2 МЛН
9.2 - Debugging - GDB Tutorial
23:42
Chris Bourke
Рет қаралды 307 М.
CppCon 2016: Greg Law “GDB - A Lot More Than You Knew"
59:09
Makefiles Make Your Life Easier
12:05
NeuralNine
Рет қаралды 83 М.
Comparing C to machine language
10:02
Ben Eater
Рет қаралды 5 МЛН
An Introduction to GDB for Debugging C Programs - COMP211 - Fall 2020
1:03:55
Debugging with Core Dumps
9:16
Jacob Sorber
Рет қаралды 62 М.
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2 МЛН
GDB is REALLY easy! Find Bugs in Your Code with Only A Few Commands
7:29
Low Level Learning
Рет қаралды 193 М.
How They Hack: Buffer Overflow & GDB Analysis - James Lyne
16:06
ТОП-5 культовых телефонов‼️
1:00
Pedant.ru
Рет қаралды 16 М.
Bardak ile Projektör Nasıl Yapılır?
0:19
Safak Novruz
Рет қаралды 6 МЛН
Мечта Каждого Геймера
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,4 МЛН