当前位置:网站首页>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
边栏推荐
猜你喜欢

Automatic differentiation and higher order derivative in deep learning framework

STM32 uses Hal library. The overall structure and function principle are introduced

使用flask和h5搭建网站/应用的简要步骤

2022-04-22 OpenEBS云原生存储

K210 learning notes (II) serial communication between k210 and stm32

ONEFLOW learning notes: from functor to opexprinter

OneFlow學習筆記:從Functor到OpExprInterpreter

Idea is configured to connect to the remote database mysql, or Navicat fails to connect to the remote database (solved)

Enterprise wechat application authorization / silent login

Idea package jar file
随机推荐
Complete binary search tree (30 points)
Idea is configured to connect to the remote database mysql, or Navicat fails to connect to the remote database (solved)
Type anonyme (Principes fondamentaux du Guide c)
Go语言自学系列 | golang结构体的初始化
ONEFLOW learning notes: from functor to opexprinter
汇编语言与逆向工程 栈溢出漏洞逆向分析实验报告
Play with binary tree (25 points)
Latex paper typesetting operation
是否完全二叉搜索树 (30 分)
Output first order traversal according to second order and middle order traversal (25 points)
Automatic differentiation and higher order derivative in deep learning framework
Wechat: get the owner of a single tag
关于cin,scanf和getline,getchar,cin.getline的混合使用
Idea package jar file
PLC的点表(寄存器地址和点表定义)破解探测方案--方便工业互联网数据采集
Talent Plan 学习营初体验:交流+坚持 开源协作课程学习的不二路径
DJ音乐管理软件Pioneer DJ rekordbox
1099 establish binary search tree (30 points)
Solidity 问题汇总
How much inventory recording does the intelligent system of external call system of okcc call center need?