From the course: C: Data Structures, Pointers, and File Systems
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Using a debugger - C Tutorial
From the course: C: Data Structures, Pointers, and File Systems
Using a debugger
- [Instructor] The Code Blocks debugger can help track problems in your code but it's also a great learning tool, especially for the meddlesome topic of pointers. First ensure that Code Blocks has a debugger installed. Choose settings, debugger and then under default you want to make sure that the file mentioned is GDB 32 EXE, which is the bin folder or bin directory, under the min GW compiler. If not, use this button to browse for that location and click okay, the debugger is ready. Next you must start a new project and specify that the debug build be created. So let's go to a file, new project, console application, C language, and I'm going to name this after the exercise file. They ensure that the debug configuration is selected. I'm going to open up the preset main source code, and get rid of it and paste in the source code from the exercise file and then save it. Now I'm just going to build and run for the heck of it, see what this does. And it outputs some hexadecimal values…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Solving math puzzles3m 32s
-
(Locked)
Creating random numbers3m 42s
-
(Locked)
Working with time functions3m 54s
-
(Locked)
Sorting data4m 8s
-
(Locked)
Debugging your code2m
-
(Locked)
Using a debugger4m 53s
-
(Locked)
Writing your own header file2m 53s
-
(Locked)
Mixing multiple source code files4m
-
(Locked)
Challenge: Lotto simulation1m 18s
-
(Locked)
Solution: Lotto simulation2m 29s
-
(Locked)
-