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

Using a debugger - C Tutorial

From the course: C: Data Structures, Pointers, and File Systems

Start my 1-month free trial

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…

Contents