Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-12-2004, 10:55 AM   #1
Registered: Dec 2003
Distribution: Debian
Posts: 92

Rep: Reputation: 15
How do I debug a C program


this is a rather basic question, so excuse my ignorance.

I have a C code which i supposed to compile and run on C under Linux, I need to debug it line by line as you do on windows applications like VC++ and delphi.

can this be done? how or with what software?

Old 03-12-2004, 10:58 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Moved: Seems more suitable in our Programming forum. Regards.
Old 03-12-2004, 11:08 AM   #3
Senior Member
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,421

Rep: Reputation: 200Reputation: 200Reputation: 200
Fantastic tool:

if you got suse, it's on the distro disk.

Old 03-12-2004, 02:58 PM   #4
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
gdb is the command line debugger on GNU/Linux.

There are GUI front-ends available for it, such as ddd and xgdb.

Learn to use gdb first. :)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to debug GTK+ program asahlot Programming 4 10-19-2005 05:23 AM
How do i debug my c++ program please? twirl Programming 1 09-12-2005 03:34 AM
how can I debug the interactinve program with GDB bigapple Programming 1 08-03-2005 10:55 PM
Can someone debug this 4 line program? (C) Squall Programming 3 03-22-2004 11:48 PM
c++ newbie - help debug simple program please mymojo Programming 4 11-27-2003 05:17 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration