Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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. https://lists.gnu.org/archive/html/ddd/2008-10/msg00006.html

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

2 Answers 2

up vote 2 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
wget http://ftp.gnu.org/gnu/ddd/ddd-3.3.9.tar.gz
wget http://ftp.gnu.org/gnu/ddd/ddd-3.3.9.tar.gz.sig
tar xvf ddd-3.3.9.tar.gz
cd ddd-3.3.9
./configure
make
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 https://www.gnu.org/software/ddd/ will redirect to https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=ddd

Download ddd-keyring.gpg.

gpg --import ddd-keyring.gpg

Verify.

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: askubuntu.com/a/178692/73165 –  Stabledog Aug 21 '12 at 20:03

Your Answer

 
discard

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.