当前位置:网站首页>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
边栏推荐
- Shell脚本进阶
- 匿名類型(C# 指南 基礎知識)
- LeetCode-199-二叉树的右视图
- JVM工具之Arthas使用
- Misunderstanding of flush () method of OutputStream class
- 根据字节码获取类的绝对路径
- Noyer électronique stm32 Introduction à l'Internet des objets 30 étapes notes I. différences entre la Bibliothèque Hal et la Bibliothèque standard
- How browser works
- Anonymous type (c Guide Basics)
- Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
猜你喜欢
随机推荐
HAL库的RCC简介
第一性原理 思维导图
匿名類型(C# 指南 基礎知識)
数论求a^b(a,b为1e12级别)的因子之和
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
耳穴诊疗随笔0421
mycat配置
洋桃电子STM32物联网入门30步笔记三、CubeMX图形化编程、设置开发板上的IO口
虚拟线上展会-线上vr展馆实现24h沉浸式看展
分布式消息中间件框架选型-数字化架构设计(7)
Using qlst excel file
form表单 post提交 数据量大的问题
【IndexOf】【lastIndexOf】【split】【substring】用法详解
作文以记之 ~ 二叉树的前序遍历
Description of the abnormity that the key frame is getting closer and closer in the operation of orb slam
关于数组复制问题
获取TrustedInstaller权限
How browser works
PDF with watermark
跨域配置报错: When allowCredentials is true, allowedOrigins cannot contain the special value “*“









