you need to stop using print debugging (do THIS instead)
Low Level Learning Low Level Learning
539K subscribers
396,401 views
0

 Published On Oct 1, 2022

Adding print statements to debug your crashing program is a tale as old as time. It gets the job done... most of the time. As your code gets more complex and larger, print debugging quickly becomes unfeasible.

Using gdb and core files, you can easily cut your debugging time down. In this video, I'll be discussing a pet program that I wrote and using a core file to debug an issue with our program. We'll talk about how to get your program and kernel to produce a core file on segmentation fault, as well as a few techniques to debug C and C++.

🏫 COURSES 🏫 Learn to code in C at https://lowlevel.academy
đź“° NEWSLETTER đź“° Sign up for our newsletter at https://mailchi.mp/lowlevel/the-low-down

🔥🔥🔥 SOCIALS 🔥🔥🔥
Low Level Merch!: https://www.linktr.ee/lowlevellearning
Follow me on Twitter:   / lowleveltweets  
Follow me on Twitch:   / lowlevellearning  
Join me on Discord!:   / discord  

show more

Share/Embed