LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-21-2005, 06:12 AM   #1
dreams
Member
 
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39

Rep: Reputation: 15
help me pls! ddd with bash debugger!


I want to use ddd to debug my script, and I found bashdb in sourceforge.net which is a tool for debugging the bash script and so on . but it is in text console. I want to use it under ddd, and sourceforge.net have the screen shot of bashdb under ddd "bashdb.sourceforge.net/bashdb-ddd.png"
How can i do that ? use bashdb in ddd!
thank u soooooo much , i am just in a hurry !

Last edited by jtshaw; 12-21-2005 at 07:25 AM. Reason: Removed email request.. one of the points of this board is so the entire community can find answers to questions so they don't have to be asked again and again and again.
 
Old 12-21-2005, 07:31 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
The BashDB files page on SourceForge has a version of DDD on it for download that supports bashdb.
 
Old 12-21-2005, 09:53 AM   #3
dreams
Member
 
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39

Original Poster
Rep: Reputation: 15
thank u jtshaw, is it ddd-3.3.2-bashdb.tar.gz that you mentioned? but i've already download it and can't install it .
Although i have installed it now, but only just use gdb , can't debug a bash script. I have no idea about how to solve it or how can I configure ddd that it can debug a bash script. I am so appreciate u , thanks u sooo much
 
Old 12-22-2005, 05:30 AM   #4
dreams
Member
 
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39

Original Poster
Rep: Reputation: 15
anyone can help me ?

thanx a lot
 
Old 12-22-2005, 08:18 AM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
The file you want is ddd-3.3.12-test.tar.gz. You'll probably want to install in in /opt or /usr/local so it doesn't overwrite the regular copy of DDD you have. They you'll either have to make sure that the directory the ddd w/bashdb is in appears first in your PATH or you'll have to run it with the absolute path to the program.
 
Old 12-23-2005, 06:01 PM   #6
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
I don't know how complicated your problem is but if you are in a BIG hurry, run your script like:

box:/$ sh -x my_bash_script

It gives a lot of output an with some clever thinking you can solve almost any problem. And sprinkle around some echo statements in your code.

jlinkels
 
Old 12-27-2005, 12:36 AM   #7
dreams
Member
 
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39

Original Poster
Rep: Reputation: 15
thank u so much , jlinkels
i have handled it follow your suggestion
thanx
 
Old 09-17-2014, 05:40 PM   #8
osirisgothra
LQ Newbie
 
Registered: Feb 2013
Posts: 4

Rep: Reputation: Disabled
Lightbulb late than never

I've come across this and other posts just like it. It makes me very angry when people make the suggestion to use echo statements and a "syntax checker" (sh -x does not really qualify, the man pages themselves tell you it just runs the script without executing any commands)

Now you tell me, how do you manage a large script with >2000 lines doing that? Argh... I hope your job doesn't involve giving suggestions to programmers or script writers, because if it is, we are in a world of hurt.

The answer to this question as far as I can see, was completely ignored and unanswered. People need to remember for the one person that asked the question, there are 10 million that are hoping they won't have to ask the same one. I wonder how many disappointed people come through here?

All I know is that 'ddd' is shaping up to be pretty bad when it comes to integrating with bash and bashdb, that's too bad. And the one time I *finally* got it to work, it CRASHED... (a nice little console message "Oops...blahblah "you found a bug!" more message text here"...

I cannot recommend it (ddd)
It would be nice if someone could actually throughly answer this question.
 
Old 09-17-2014, 05:53 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by osirisgothra View Post
I've come across this and other posts just like it. It makes me very angry when people make the suggestion to use echo statements and a "syntax checker"
People trying to help you by suggesting alternative solutions makes you angry?

Quote:
The answer to this question as far as I can see, was completely ignored and unanswered. People need to remember for the one person that asked the question, there are 10 million that are hoping they won't have to ask the same one. I wonder how many disappointed people come through here?
No one on this forum owes you anything. If someone makes a suggestion that does not fit your requirements there is no need to rant about it.

Quote:
It would be nice if someone could actually throughly answer this question.
Yes sir, I'll get right on that...

Evo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux debugger: DDD on solaris kranti Linux - Newbie 1 11-19-2005 03:51 PM
String variables in DDD Qt debugger impeteperry Linux - Software 0 06-12-2005 07:57 AM
Bash debugger bigrigdriver Linux - General 1 04-14-2004 06:54 PM
ddd Debugger lmellen Programming 6 01-26-2004 01:07 PM
ddd debugger jclark00001 Linux - Software 1 06-23-2003 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration