Debugging C and C++: Master GDB, Valgrind, and Memory Safety

Learn to find, diagnose, and fix memory leaks and runtime errors in C and C++ using GDB, Valgrind, and modern sanitizers to write robust, production-ready code.

4.5 (345) ⏱ 1 ชม. 57 นาที 📚 5 บทเรียน

เกี่ยวกับคอร์สนี้

Relying on print statements to find bugs in your C and C++ programs is slow, exhausting, and often fails to uncover hidden memory leaks. To build robust, production-grade software, you need to master the professional tools and systematic techniques used to diagnose complex runtime errors. This written course guides you through the essential concepts of software debugging. You will transition from guessing where errors are to systematically identifying, analyzing, and fixing segmentation faults, memory leaks, and undefined behavior. What you'll learn: - Understand core debugging terminology, memory layouts, and why common C/C++ bugs occur. - Master GDB commands to inspect variables, set breakpoints, navigate call stacks, and perform reverse debugging. - Detect memory leaks and invalid memory accesses using Valgrind Memcheck. - Apply modern compiler instrumentation techniques like AddressSanitizer (ASan) to catch bugs at runtime. - Analyze core dumps to debug crashes that happen in production environments. - Write GDB scripts to automate repetitive debugging workflows and save time. You will start with foundational concepts of program execution and memory safety before moving step-by-step through practical debugging scenarios. Through written explanations and code analysis exercises, you will build a solid mental model of how programs fail and how to fix them. This course is designed for beginner-to-intermediate C and C++ developers who want to move beyond basic print-statement debugging. No prior experience with debugging tools is required. Equip yourself with the skills to write cleaner, safer, and more reliable C and C++ code.

สิ่งที่คุณจะได้รับ

  • 📜 ใบประกาศนียบัตร
    เพิ่มในโปรไฟล์ LinkedIn ของคุณ
  • ♾️ เข้าถึงตลอดชีพ
    กลับมาเรียนได้ตลอด ไม่มีหมดอายุ
  • 📱 โทรศัพท์หรือคอมพิวเตอร์
    ใช้งานได้ทุกที่ ทุกอุปกรณ์
  • 💸 คืนเงิน 30 วัน
    ไม่ต้องอธิบาย
  • กระชับและตรงประเด็น
    1 ชม. 57 นาที เนื้อหาเชิงปฏิบัติ

รีวิว (3)

Ricardo Pinto PT ผู้เรียนที่ยืนยันแล้ว
★ 4 · 2025-10-03T07:59:55+00:00

เป็นการแนะนำหัวข้อที่ดี โครงสร้างมีตรรกะ และตัวอย่างส่วนใหญ่เกี่ยวข้องกัน ถึงแม้ว่าฉันจะหวังให้มีความลึกซึ้งมากขึ้นในบางพื้นที่

Leo Evans GB
★ 4 · 2025-04-17T13:12:55+00:00

ข้อมูลดีที่นำเสนอที่นี่ ตัวอย่างมีประโยชน์ แต่บางครั้งก็อยากได้ความลึกมากกว่านี้ คุ้มค่าสมราคาดี

Róbert Jankovič SK ผู้เรียนที่ยืนยันแล้ว
★ 2 · 2024-12-23T08:50:55+00:00

เจอว่ามีประโยชน์สำหรับการทบทวนนะ ไม่แน่ใจว่าจะเป็นจุดเริ่มต้นที่ดีที่สุดสำหรับมือใหม่เลยหรือเปล่า บอกตามตรง

เขียนรีวิว

หลังจากส่ง เราจะขอให้คุณเข้าสู่ระบบ — ฉบับร่างของคุณถูกบันทึก

ผู้เรียนคนอื่นเรียน

พื้นฐานระบบสมองกลฝังตัวและการพัฒนาด้วย Raspberry Pi

เชี่ยวชาญหลักการสำคัญของการเชื่อมต่อฮาร์ดแวร์, พื้นฐานวงจร, และการเขียนโปรแกรม Raspberry Pi เพื่อสร้างและควบคุมแอปพลิเคชันสมองกลฝังตัวของคุณเอง
★ 5.0 (15)
$4.99$9.99

ระบบคอมพิวเตอร์จากหลักการแรก: วิธีการจาก NAND ไปยัง Tetris

สร้างระบบคอมพิวเตอร์ที่ทำงานได้ตามแนวคิด โดยเริ่มจากล็อกเกตที่เรียบง่ายที่สุด และสร้างขึ้นมาเป็นสถาปัตยกรรมฮาร์ดแวร์ที่สมบูรณ์
★ 4.9 (3,730)
$4.99$9.99

พื้นฐานของวิทยาศาสตร์คอมพิวเตอร์และโปรแกรม C

สร้างฐานที่แข็งแกร่งในความคิดการคำนวณ เข้าใจว่าระบบคอมพิวเตอร์ทำงานอย่างไร และเขียนโปรแกรมครั้งแรกของคุณ ใช้ภาษา C
★ 4.8 (1,734)
$4.99$9.99

การเขียนโปรแกรมไมโครคอนโทรลเลอร์สำหรับหุ่นยนต์และหุ่นยนต์บังคับ

เรียนรู้การเขียนฟาร์มวีร์ และควบคุมฮาร์ดแวร์ ใช้ภาษา C สร้างสมอง หลังหุ่นยนต์อัตโนมัติ และระบบฝังตัว
★ 4.8 (1,714)
$4.99$9.99

คำถามที่พบบ่อย

ฉันต้องใช้อะไรในการเรียนคอร์สนี้? +

แค่โทรศัพท์หรือคอมพิวเตอร์ที่มีอินเทอร์เน็ต ไม่ต้องติดตั้งหรือใช้อุปกรณ์พิเศษ

ฉันชำระเงินอย่างไร? +

ผ่านบัตรด้วย Stripe หรือคริปโต เราไม่เก็บข้อมูลบัตร — Stripe จัดการอย่างปลอดภัย

ฉันขอคืนเงินได้ไหม? +

ใช่ — คืนเงินเต็มจำนวนใน 30 วัน ไม่ต้องอธิบาย

ฉันมีสิทธิ์เข้าถึงนานเท่าไร? +

ตลอดไป เมื่อซื้อแล้วคอร์สเป็นของคุณ กลับมาเรียนได้ตลอด

ฉันจะได้ใบประกาศนียบัตรไหม? +

ได้ เมื่อเรียนจบจะได้รับใบประกาศนียบัตรที่เพิ่มในโปรไฟล์ LinkedIn ได้

ออกแบบสำหรับผู้เรียนใน
เทคโนโลยี ดีไซน์ การเงิน การตลาด สาธารณสุข การศึกษา ธุรกิจการบริการ อุตสาหกรรม