bash - 是否可以逐行调试 bash 脚本?

标签 bash debugging line-by-line

我会喜欢像 Microsoft Visual Studio 在 bash 中使用当前变量值等进行逐行调试的功能。

有什么工具或方法可以做到吗? set -xset -v 不错,但并不完美。

最佳答案

参见bashdb

如果它安装在您的系统上,请参阅 man bashdb

如果未安装,请参阅 http://bashdb.sourceforge.net

关于bash - 是否可以逐行调试 bash 脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14889322/

相关文章:

bash - 提取以数字开头的变量部分

c++ - 在 visual studio 2005 中调试 openCV

scala - 如何逐行读取文件并随后在 Scala 中关闭它?

regex - git smart line 和 word diff

linux - 使用 awk 解析在字段中包含逗号的制表符分隔文件

php - shell_exec 不为 inkscape 命令执行 sh 文件

android - 调试器不会在 RxJava for Android 的断点处停止

c++ - std::thread - 逐行读取文件

linux - 在 linux bash 脚本中恢复

javascript - 当我打开 chrome 开发人员工具时,Visual Studio Community 2017 停止调试