当前位置:网站首页>bashdb下载安装
bashdb下载安装
2022-04-23 08:28:00 【泰勒朗斯】
最近发现一个调试shell脚本的好助手,bashddb.
下载地址:
https://sourceforge.net/projects/bashdb/files/

然后选择bashdb

然后在自己电脑上看bash的版本
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.
我的是5.0.17,那么我选择5.0-1.1.2版本的bashdb下载。
./configure
make
make install
就可以用了
bashdb --debug xx.sh
然后输入下列bashdb命令:
一、列出代码和查询代码类:
l 列出当前行以下的10行
- 列出正在执行的代码行的前面10行
. 回到正在执行的代码行
w 列出正在执行的代码行前后的代码
/pat/ 向后搜索pat
? pat?向前搜索pat
二、Debug控制类:
h 帮助
help 命令 得到命令的具体信息
q 退出bashdb
x 算数表达式 计算算数表达式的值,并显示出来
!! 空格Shell命令 参数 执行shell命令
使用 bashdb进行debug的常用命令(cont.)
三、控制脚本执行类:
n 执行下一条语句,遇到函数,不进入函数里面执行,将函数当作黑盒
s n 单步执行n次,遇到函数进入函数里面
b 行号n 在行号n处设置断点
del 行号n 撤销行号n处的断点
c 行号n 一直执行到行号n处
R 重新启动当前调试脚本
Finish 执行到程序最后
cond n expr 条件断点
版权声明
本文为[泰勒朗斯]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_43360707/article/details/124350657
边栏推荐
猜你喜欢

Noyer électronique stm32 Introduction à l'Internet des objets 30 étapes notes I. différences entre la Bibliothèque Hal et la Bibliothèque standard

洋桃电子STM32物联网入门30步笔记三、新建CubeIDE工程和设置讲解

PgSQL wants to implement all kinds of column sub query operations of MySQL

洋桃电子STM32物联网入门30步笔记二、CubeIDE下载、安装、汉化、设置

四张图弄懂matplotlib的一些基本用法

After a circle, I sorted out this set of interview questions..

测试你的机器学习流水线

Asan minimalism

洋桃电子STM32物联网入门30步笔记一、HAL库和标准库的区别

洋桃电子STM32物联网入门30步笔记四、工程编译和下载
随机推荐
Use of Arthas in JVM tools
Asan minimalism
Ear acupoint diagnosis and treatment essay 0421
获取TrustedInstaller权限
Copy array in JS
DOM 学习之—添加+-按钮
xctf刷题小记
面了一圈,整理了这套面试题。。
Notes on English class (4)
DOM learning - add + - button
swagger文档导出自定义v2/api-docs拦截
数据可视化:使用Excel制作雷达图
Go语言自学系列 | golang嵌套结构体
LINQ Learning Series ----- 1.4 anonymous objects
二维01背包
Detailed explanation of ansible automatic operation and maintenance (I) installation and deployment, parameter use, list management, configuration file parameters and user level ansible operating envi
Ajax cache prevention method
Notes on 30 steps of introduction to the Internet of things of yangtao electronics STM32 III. cubemx graphical programming and setting the IO port on the development board
让地球少些“碳”息 度能在路上
洋桃电子STM32物联网入门30步笔记三、CubeMX图形化编程、设置开发板上的IO口