Debugging C Code

Debugging C Code

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 0h 51m | 147 MB

It’s not a matter of if you find bugs in your C code—it’s a matter of when. And even for advanced developers, finding and fixing bugs can be a challenge. In this course, get an in-depth look at tools and best practices that can help you spot and resolve bugs in your C code. Instructor Dan Gookin kicks off the course by going over the nature of bugs, common coding problems, and how to track variables and situations in your code without using debugging software. Next, he covers how to work with an IDE debugger—Code::Blocks—to step through code, find flaws, and resolve issues. To wrap up, Dan covers how to use the GNU Debugger, a staple in the Unix environment, to examine and decompile code. Along the way, he provides challenges that allow you to put your new debugging skills to the test.

Table of Contents

Introduction
1 Out bugs
2 Required tools

Bugs in Your Code
3 Understanding bugs
4 Catching bugs
5 Debugging your code manually
6 Reviewing ten common coding problems
7 Challenge Where is the error
8 Solution Where is the error

IDE Debugging
9 Building a debug project
10 Stepping through your code
11 Examining variables and memory
12 Challenge Find the bug
13 Solution Find the bug

The GNU Debugger
14 Compiling code for debugging
15 Setting breakpoints
16 Dumping memory
17 Challenge Fix the code
18 Solution Fix the code