LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 03-12-2004, 09:55 AM   #1
mfeoli
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 92

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


Hi,

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?

thanks
 
Old 03-12-2004, 09:58 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
Moved: Seems more suitable in our Programming forum. Regards.
 
Old 03-12-2004, 10:08 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,269

Rep: Reputation: 165Reputation: 165
Fantastic tool:

http://www.gnu.org/software/ddd/

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


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

Rep: Reputation: 30
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. :)
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 02:19 AM.

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