当前位置:网站首页>Download and install bashdb
Download and install bashdb
2022-04-23 08:49:00 【Taylor lance】
Recently found a debug shell A good assistant for scripts ,bashddb.
Download address :
https://sourceforge.net/projects/bashdb/files/

And then choose bashdb

Then watch it on your computer bash Version of
bash --version
bash --version
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
My is 5.0.17, Then I choose 5.0-1.1.2 Version of bashdb download .
./configure
make
make install
You can use it
bashdb --debug xx.sh
Then enter the following bashdb command :
One 、 List codes and query code classes :
l Lists the items below the current line 10 That's ok
- Lists the front of the line of code being executed 10 That's ok
. Return to the line of code being executed
w Lists the code before and after the line of code being executed
/pat/ Backward search pat
? pat? Search forward pat
Two 、Debug The control class :
h help
help command Get the specific information of the command
q sign out bashdb
x Arithmetic expression Calculates the value of an arithmetic expression , And show it
!! Space Shell command Parameters perform shell command
Use bashdb Conduct debug Common commands (cont.)
3、 ... and 、 Control script execution class :
n Execute the next statement , Encountered function , Do not enter the function to execute , Treat functions as black boxes
s n Step by step n Time , When a function is encountered, it enters the function
b Line number n In the line number n Set breakpoint
del Line number n Undo line number n The breakpoint at
c Line number n Execute until line number n It's about
R Restart top note of debugging script
Finish Execute to the end of the program
cond n expr Conditional breakpoints
版权声明
本文为[Taylor lance]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230828298563.html
边栏推荐
猜你喜欢
随机推荐
Error: cannot find or load main class
正点原子携手OneOS直播 OneOS系统教程全面上线
Illegal character in scheme name at index 0:
应纳税所得额
K210学习笔记(二) K210与STM32进行串口通信
LLVM之父Chris Lattner:编译器的黄金时代
【精品】利用动态代理实现事务统一管理 二
第一性原理 思维导图
okcc呼叫中心外呼系统智能系统需要用多大的盘存录音?
Idea package jar file
求简单类型的矩阵和
Star Trek强势来袭 开启元宇宙虚拟与现实的梦幻联动
mycat配置
PLC point table (register address and point table definition) cracking detection scheme -- convenient for industrial Internet data acquisition
OneFlow學習筆記:從Functor到OpExprInterpreter
L2-023 graph coloring problem (25 points) (graph traversal)
Noyer électronique stm32 Introduction à l'Internet des objets 30 étapes notes I. différences entre la Bibliothèque Hal et la Bibliothèque standard
Yangtao electronic STM32 Internet of things entry 30 step notes IV. engineering compilation and download
关于堆的判断 (25 分) 两种插入方式
Failed to prepare device for development









