LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-24-2014, 09:25 PM   #1
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Rep: Reputation: 21
I need a C/C++ debugger that works.


I need a debugger to debug C/C++ compiled code. The executable is compile with the g++ -g directive. I have been trying in vain to succeed in making a debugger work although there are many. In particular I need to watch variable values.

Any ideas, or the only two ways in the open source community are to either use gdb and to use cout calls to display variable values?
 
Old 04-24-2014, 09:29 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
so.. you didn't say what's wrong with gdb
 
Old 04-24-2014, 09:36 PM   #3
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Original Poster
Rep: Reputation: 21
The problem is not gdb itself, but rather, with other debugger frontends using it. They all fail miserably. I don't know what is happening to them as I didn't examine their code.

I need a debugger to watch values as I trace the code. gdb only shows one line of code at a time making it very difficult to imagine what is happening. Furthermore, I didn't find any information about how to watch values using gdb.
 
Old 04-25-2014, 12:29 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,674

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
so probably you need to try ddd. https://www.gnu.org/software/ddd/
 
Old 04-25-2014, 06:06 AM   #5
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Original Poster
Rep: Reputation: 21
Finally, I found a help file worthy of its name. I am using gdb: it works and I can trace variable values as I run my code.
 
  


Reply

Tags
ddd


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
malloc() only works under the gdb debugger. Unicks Linux - Kernel 1 07-03-2009 01:28 AM
XAWTV works, videodog works, motion works but how to code my own? rylan76 Linux - Hardware 0 01-06-2006 06:30 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:31 PM.

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