Good Tutorial for ddd?

Posted on 2005-04-25
Last Modified: 2012-05-05
I am looking for a good tutorial for using ddd .
I am worrking on C++ , unix platform.
I have a makefile, which has several files which need to be executed simultaneously ( Network Programming)
Is there a way I can see the flow of which file is being called and executed using ddd?Or maybe even debug a single file ,while I execute the makefile.
I could use it when I had a single file to execute .......but I am not sure how to use it in my present situation?
Question by:blinker82
    LVL 45

    Expert Comment


    It would help you immesnly to learn a bit about gdb too

    It does not matter how many files you have ... debugger will take care of it ... Problem arises when you have mutiple processes ... gdb/ddd can track only one process at a time ... If you need to debug multiple processes,
    - put a sleep in them ..
    - run ps -aux and get the PIDs of the processes that interest you
    - launch another instance of gdb/ddd and attach to that process ... command is "attach PID"


    Author Comment

    Yes I have multiple processess.........but I cannot use sleep as I am already using timers...... it is sensitive to delays due to sleep in terms of results.
        If my makefile is say, abcd
    when i run >ddd abcd
    I cannot see anything in the debugger.
    Can u elaborate?
    LVL 45

    Accepted Solution

    Debuggers process executables ... Passing makefile to them will not produce anything ... Open an executable.

    >but I cannot use sleep as I am already using timers
    Sleep right at startup before setting timers or anything ... idea is to give you enough time to do a ps and attach

    Author Comment

    Hey thanks Sunny .......I ll try this and will get back sometime.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    This tutorial is posted by Aaron Wojnowski, administrator at  To view more iPhone tutorials, visit This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
    This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
    The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.

    733 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now