Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

ddd script.bsh does not open the script. It shows an our glass and if I want to close ddd, it says "bash is busy"...

I found an old message, but it didn't help.

I couldn't find ddd-3.3.12-test6.tar.gz, therefore I am using the ddd version from ubuntu repository. Also bashdb is already installed. Used apt-get install ddd bashdb.

Anyone able to use ddd for bash on Precise?

share|improve this question
up vote 3 down vote accepted

I was able to get ddd and bashdb to play nice on Ubuntu 12.04 today:

1- Remove the repo-supplied ddd

sudo apt-get remove ddd

2- Fetch ddd 3.3.9 and install from source, e.g.:

sudo apt-get build-dep ddd
sudo apt-get install libmotif-dev
tar xvf ddd-3.3.9.tar.gz
cd ddd-3.3.9
sudo make install

(Note: I had to make a single patch to the source code to get the build to work -- in ddd/strclass.C, we needed a #include <stdio.h> at the top to define EOF)

3- bashdb must be installed, of course

sudo apt-get install bashdb

4- Now launch with

ddd --debugger /usr/bin/bashdb -- {script name} {parameters}

Could not live without ddd+bash.

Edit by OP:

Optional gpg verification:

Search for sign on will redirect to

Download ddd-keyring.gpg.

gpg --import ddd-keyring.gpg


gpg --verify --verify ddd-3.3.9.tar.gz.sig
share|improve this answer

To get ddd to work with the bash debugger on bash scripts, it's necessary to install bashdb too.

If it's not installed, you get:

enter image description here

Afterwards, ddd seems to work normally:

enter image description here

share|improve this answer
bashdb is already installed and working. Did you get ddd running on precise? – James Mitch Jun 28 '12 at 10:56
@JamesMitch, yes, I'm on Precise 12.04 (64-bit, though). – izx Jun 28 '12 at 10:59
Did you actually test to step through a bash script? I booted the Precise 12.04 64-bit DVD, installed ddd and bashdb and still couldn't open a bash script without seeing the hourglass. – James Mitch Jun 29 '12 at 20:42
I did get it working on Ubuntu 12.04, by using an old version of ddd (3.3.9). Had to build it from source, and install the libmotif-dev package first. – Stabledog Aug 21 '12 at 19:36
Additional details here: – Stabledog Aug 21 '12 at 20:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.