当前位置:网站首页>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
边栏推荐
- Share the office and improve the settled experience
- K210学习笔记(二) K210与STM32进行串口通信
- 根据后序和中序遍历输出先序遍历 (25 分)
- K210 learning notes (II) serial communication between k210 and stm32
- GUI编程简介 swing
- Complete binary search tree (30 points)
- Chris LATTNER, father of llvm: the golden age of compilers
- 爬虫使用xpath解析时返回为空,获取不到相应的元素的原因和解决办法
- Notes on 30 steps of introduction to Internet of things of yangtao electronics STM32 III. Explanation of new cubeide project and setting
- Yangtao electronic STM32 Internet of things entry 30 step notes IV. engineering compilation and download
猜你喜欢
随机推荐
Latex paper typesetting operation
第一性原理 思维导图
php基于哈希算法出现的强弱比较漏洞
关于堆的判断 (25 分) 两种插入方式
数字政府建设中政务中台中的技术创新点
深度学习框架中的自动微分及高阶导数
1099 建立二叉搜索树 (30 分)
Solidity 问题汇总
Automatic differentiation and higher order derivative in deep learning framework
Failed to prepare device for development
洋桃电子STM32物联网入门30步笔记三、新建CubeIDE工程和设置讲解
Get the absolute path of the class according to the bytecode
Search tree judgment (25 points)
请提前布局 Star Trek突破链游全新玩法,市场热度持续高涨
根据后序和中序遍历输出先序遍历 (25 分)
On time atom joins hands with oneos live broadcast, and the oneos system tutorial is fully launched
00后最关注的职业:公务员排第二,第一是?
Kubernetes如何使用harbor拉去私有镜像
LaTeX论文排版操作
Go语言自学系列 | golang结构体指针







