当前位置:网站首页>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
边栏推荐
- L2-023 图着色问题 (25 分)(图的遍历)
- 第一性原理 思维导图
- After a circle, I sorted out this set of interview questions..
- Swagger document export custom V2 / API docs interception
- Idea package jar file
- 【原创】使用System.Text.Json对Json字符串进行格式化
- 企业微信应用授权/静默登录
- GUI编程简介 swing
- 2021李宏毅机器学习之Adaptive Learning Rate
- Virtual online exhibition - Online VR exhibition hall realizes 24h immersive exhibition viewing
猜你喜欢
【58】最后一个单词的长度【LeetCode】
MySQL查询两张表属性值非重复的数据
2021李宏毅机器学习之Adaptive Learning Rate
L2-022 rearrange linked list (25 points) (map + structure simulation)
洋桃电子STM32物联网入门30步笔记二、CubeIDE下载、安装、汉化、设置
Study notes of deep learning (8)
Yangtao electronic STM32 Internet of things entry 30 step notes IV. engineering compilation and download
Share the office and improve the settled experience
valgrind和kcachegrind使用運行分析
Enterprise wechat application authorization / silent login
随机推荐
2022-04-22 OpenEBS云原生存储
ONEFLOW learning notes: from functor to opexprinter
共享办公室,提升入驻体验
引用传递1
2021 Li Hongyi's adaptive learning rate of machine learning
Stm32f103zet6 [development of standard library functions] - Introduction to library functions
Play with binary tree (25 points)
Learn SQL injection in sqli liabs (Level 11 ~ level 20)
Wechat: get the owner of a single tag
LINQ学习系列-----1.4 匿名对象
洋桃电子STM32物联网入门30步笔记一、HAL库和标准库的区别
Virtual online exhibition - Online VR exhibition hall realizes 24h immersive exhibition viewing
Noyer électronique stm32 Introduction à l'Internet des objets 30 étapes notes I. différences entre la Bibliothèque Hal et la Bibliothèque standard
调包求得每个样本的k个邻居
MySQL查询两张表属性值非重复的数据
在sqli-liabs学习SQL注入之旅(第十一关~第二十关)
Failed to prepare device for development
1099 建立二叉搜索树 (30 分)
Idea import commons-logging-1.2 Jar package
企业微信应用授权/静默登录