Get DDD working for linux

Posted on 2001-07-10
Medium Priority
Last Modified: 2010-04-21
Could someone please show me where to download DDD for .cpp code debugging on Linux? I also need instruction on how to instal DDD and make it work.

Question by:yingchunli

Accepted Solution

garboua earned 120 total points
ID: 6272818
go to http://www.rpmfind.net/linux/RPM/rawhide/1.0/i386//RedHat/RPMS//ddd-3.3.1-4.i386.html and download the package.
also look at middle of page and it will show you all dependencies.
you can also look for it in your distribution CD.
to install the package type "rpm -Uvh ddd-3.3.1-4.i386.rpm" and it should install, or spit out what packages it needs.
if you download the source package, will end with something like ddd*.src.rpm, you can rebuild it on you system, simply type "rpm --rebuild ddd-3.3.1-4.src.rpm" and it should build it on your system.  the binray package will be placed in your /usr/src/redhat/RPMS/i386, then you can install it using the first "rpm -Uvh"
if you don't have an rpm based system, such as debian stuff, you can download the tarball.
should be easy to use, to launch it type "ddd" or "/usr/bin/ddd"

Author Comment

ID: 6275194

I still have some problems with ddd. Say, I do not know how to open the source code file in the "Source window" after launching the ddd? (I have tried the "File->Open Source", but in the file-list there is no my source code files. What is going wrong with it?)

Expert Comment

ID: 6275653
Are you sure you have compiled the code with the debugging option on in the compiler (gcc -g -o output output.c)?

If you do the source code should appear when you open the binary file.

Expert Comment

ID: 6276596
that is correct, you should include the -g or -g2 flag when you compile.  debugger defalut is g2, so if you want Extra information use -g3

Expert Comment

ID: 6334443
would you please either accept on of the answers or delete the question.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Planning to migrate your EDB file(s) to a new or an existing Outlook PST file? This video will guide you how to convert EDB file(s) to PST. Besides this, it also describes, how one can easily search any item(s) from multiple folders or mailboxes…
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question