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

虚拟线上展会-线上vr展馆实现24h沉浸式看展

共享办公室,提升入驻体验

HAL库的RCC简介

Correct method of calculating inference time of neural network

2022-04-22 openebs cloud native storage

Latex paper typesetting operation

1099 establish binary search tree (30 points)

valgrind和kcachegrind使用運行分析

Learn SQL injection in sqli liabs (Level 11 ~ level 20)

Yangtao electronic STM32 Internet of things introduction 30 steps notes 1. The difference between Hal library and standard library
随机推荐
LaTeX数学公式
关于cin,scanf和getline,getchar,cin.getline的混合使用
idea打包 jar文件
PLC的点表(寄存器地址和点表定义)破解探测方案--方便工业互联网数据采集
Valgrind et kcachegrind utilisent l'analyse d'exécution
Reference passing 1
洋桃电子STM32物联网入门30步笔记一、HAL库和标准库的区别
Error: cannot find or load main class
'bully' Oracle enlarged its move again, and major enterprises deleted JDK overnight...
STM32使用HAL库,整体结构和函数原理介绍
STM32F103ZET6【标准库函数开发】----库函数介绍
L2-022 rearrange linked list (25 points) (map + structure simulation)
根据字节码获取类的绝对路径
K210学习笔记(二) K210与STM32进行串口通信
Search tree judgment (25 points)
洋桃电子STM32物联网入门30步笔记三、新建CubeIDE工程和设置讲解
是否完全二叉搜索树 (30 分)
okcc呼叫中心外呼系统智能系统需要用多大的盘存录音?
Single chip microcomputer nixie tube stopwatch
2021李宏毅机器学习之Adaptive Learning Rate