Tuesday, 26 January 2016

How to get ddd working with bash

How to get ddd working with bash




Well this particular link works. However I have copied the contents so that anyone can look-it-up in case the original site goes down

http://askubuntu.com/questions/156906/how-do-i-get-the-bash-debugger-to-work-with-ddd/178692#178692

Do not forget to remove your ~/.ddd in case you are facing issues (BACKUP before removing the ~/.ddd) . 

  
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}

No comments:

Post a Comment