LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Debugger for C/C++ programs (https://www.linuxquestions.org/questions/linux-general-1/debugger-for-c-c-programs-233344/)

coolfrog 09-21-2004 09:01 AM

Debugger for C/C++ programs
 
Hi,
I been writing programs in C/C++ in linux. But the difficulty i'm facing is that i cannot debug the program line by line to mark out errors. Is there any program for debugging ?

MartinN 09-21-2004 09:42 AM

Sure. Compile your programs with a '-g' option to gcc. Then run your program through the gnu debugger:

gdb myprogram

Martin

coolfrog 09-21-2004 09:54 AM

Thanx for the help. Now i can get back to error free programming.


All times are GMT -5. The time now is 12:01 PM.