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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-21-2005, 07:12 AM
|
#1
|
Member
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39
Rep:
|
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 08: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.
|
|
|
12-21-2005, 08:31 AM
|
#2
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
The BashDB files page on SourceForge has a version of DDD on it for download that supports bashdb.
|
|
|
12-21-2005, 10:53 AM
|
#3
|
Member
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39
Original Poster
Rep:
|
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
|
|
|
12-22-2005, 06:30 AM
|
#4
|
Member
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39
Original Poster
Rep:
|
anyone can help me ?
thanx a lot
|
|
|
12-22-2005, 09:18 AM
|
#5
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
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.
|
|
|
12-23-2005, 07:01 PM
|
#6
|
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196
|
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
|
|
|
12-27-2005, 01:36 AM
|
#7
|
Member
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39
Original Poster
Rep:
|
thank u so much , jlinkels
i have handled it follow your suggestion
thanx
|
|
|
09-17-2014, 06:40 PM
|
#8
|
LQ Newbie
Registered: Feb 2013
Posts: 4
Rep:
|
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.
|
|
|
09-17-2014, 06:53 PM
|
#9
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
Quote:
Originally Posted by osirisgothra
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.
|
|
|
All times are GMT -5. The time now is 06:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|