Gnuru.org
Productive Linux


Subscribe

 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Login
Login:
Password:



Don't have an account?
Sign up to Gnuru.org
Forgot your password?

Bash Script Debugger
26 November 2008 @ 20:38 GMT
by Paul

This is cool and very useful.

Bashdb, I could get by apt-get install bashdb. Although I can now debug using bashdb scriptname, the preferred method bash --debugger scriptname doesn't work.

I'm only guessing here, but I guess the reason is as stated in the documentation:

In order for the ‘--debugger’ option to work however, you must have the debugger scripts installed in a place where the BASH debugger can find them.

Doing as suggested bash /usr/bin/bashdb -- scriptname does invoke the debugger. So why, oh, why can't bash find the debugger when invoked using the preferred method?

Tags: bash script



Leave a comment:

Are you human?