Study Korner

How to debug a C program in code blocks ?

Code blocks is a popular IDE to compile and run programs developed in various languages. It has also been used for C and C++ languages. We generally develop console based application in these languages.

Debugging is a process of finding and fixing some error and bugs in a given program. We can also use debugging tool to analyze our code line by line by toggling the breakpoints. The program execution will be stopped at the line where a break-point has been toggled.

Code blocks provide very effective tool to debug the program. It supports GDB debugger and GCC compiler on the back end side. The one problem with debug tool of code block is that it does debug the standalone programs. Hence, we need to develop a project in order to create the a C program and debug it.

The full demonstration of the debugging using code block can be shown in following video.

Exit mobile version