LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-21-2004, 09:01 AM   #1
coolfrog
Member
 
Registered: Sep 2004
Location: India
Distribution: Slackware 10.0
Posts: 77

Rep: Reputation: 15
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 ?
 
Old 09-21-2004, 09:42 AM   #2
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

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

gdb myprogram

Martin
 
Old 09-21-2004, 09:54 AM   #3
coolfrog
Member
 
Registered: Sep 2004
Location: India
Distribution: Slackware 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
Thanx for the help. Now i can get back to error free programming.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugger for C monowar Programming 9 12-16-2005 12:39 AM
c debugger alaios Programming 4 07-23-2005 07:37 PM
Debugger coolfrog Linux - General 2 09-25-2004 02:49 AM
c/c++ debugger Mikecore Programming 3 12-20-2003 04:24 AM
can't get out of debugger! PTBmilo *BSD 2 02-23-2003 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:05 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration