Bashdb - new user basic questions


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Bashdb - new user basic questions
# 1  
Old 08-17-2018
Bashdb - new user basic questions

This may be too silly and definitely way to early to ask .

I'll admit have read about 5% of documentation so far , but



can you make bashdb to step thru the file "automatically" by setting some kind of timeout?


and second



how do you stop the process ?

Is "quit" the only option ?




Code:
pi@pi:/usr/bin $ bash --debugger raspi-config-DEBUG.sh
bash debugger, bashdb, release 4.3-0.91

Copyright 2002, 2003, 2004, 2006-2012, 2014 Rocky Bernstein
This is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.

Reading /usr/bin/raspi-config-DEBUG.sh (/usr/bin/raspi-config-DEBUG.sh:32):
32:    debug=true


bashdb<0>
 

what is this output telling me ?


bashdb<1> 
bashdb<2>

# 2  
Old 08-17-2018
It is a prompt asking you to provide keyboard input. If you hit the return key it goes to the next line. Try typing the word help at the prompt.

You really need to read more so you know about those interactive commands. Many commands can be a single letter abbreviation

Edit Oh. Forgot to answer part of the question.
step, break, q[uit], p[rint]
Code:
# execute one line and stop
step  1
# execute n lines and the stop
step n  
#print the variable
p variable
# run the program until line 77
break 77
# break on a bash function named foo
break foo
# quit
q


Last edited by jim mcnamara; 08-17-2018 at 12:04 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

basic awk questions

I find an script with awk sitting around. I went through some online manuals, but I can't figure out exactly how it works. I can't post the whole program. Not allowed. This is the line that is confusing me. I get when else is in the script grep -v "^REM " $1| grep -v "JUNK;" | awk -F" "... (2 Replies)
Discussion started by: guessingo
2 Replies

2. Solaris

solaris 10 and a few basic questions

hello, first, I'm quite new to solaris. I've installed solaris 10 basic (item 4 on the install-menue). now I had to realize that I don't have any option for connecting the machine from remote. ssh isn't even installed although I've coosed 'yes' for remote access. no matter what solaris is... (10 Replies)
Discussion started by: fourty2
10 Replies

3. UNIX for Dummies Questions & Answers

hp-ux basic questions

I have multiple questions How to list or find only Nov month's files? How can I get state of process like running, stop, or sleep etc? How can I check dependences of processes? plz ans any if u can thx regards, Mazhar Hussain (3 Replies)
Discussion started by: mazhar99
3 Replies

4. UNIX for Dummies Questions & Answers

Basic security questions

Hey guys, I've seen this posted a few times when i searched but I kinda want to know the cleanest way of doing it. On Solaris 8 and Solaris 9 What is the best way to disable telnet ssh1 and remote root login premanently? I've seen posts that say edit /etc/services edit this edit that... (3 Replies)
Discussion started by: kingdbag
3 Replies

5. UNIX for Dummies Questions & Answers

Some basic questions

Hi- Newbie here with some basic questions: 1) I can't get alias to work. I tried alias ll='ls -al', but it doesn't work. When just typing 'alias', the new definition doesn't appear. I'm in a bash shell -- is that the problem. I tried switching to csh, but that didn't seem to help. This... (5 Replies)
Discussion started by: Aworstell
5 Replies

6. UNIX for Dummies Questions & Answers

Basic Unix Questions

OK, here's a question from a true UNIX newb: How does one make a 20 line file? I'm lost. :confused: OK, I figured it out. :D (0 Replies)
Discussion started by: Kitchen Zinc
0 Replies

7. UNIX for Dummies Questions & Answers

basic UNIX questions

Can somebody please tell me a little about UNIX OS. For instance, is it ideal for digital media or how easy is it to get help and support? (3 Replies)
Discussion started by: buk5d
3 Replies

8. Slackware

Basic networking questions.

Hey, I'm new to Linux. I have a few questions about it. I run Slackware. After the installation the Linux installation had problems with my old hardware (network card, sound card) so I removed them and Linux would start. But now, I can't seem to use the network card in Linux because it's not... (3 Replies)
Discussion started by: RellioN
3 Replies
Login or Register to Ask a Question