bash 的图形调试器
mac os x 或 linux 上有 bash 的图形调试器吗?我的意思与 Visual Studio 或 Eclipse 的调试模式相同,可以停止程序,将鼠标指针悬停在变量上并立即获取值,修改它们并返回并尝试修改,而无需从头启动程序开始。我说的是很长的 bash 脚本
Is it there any graphical debugger for bash on mac os x or linux? I mean something in the same fashion that the debugging mode of Visual Studio or Eclipse, where one can stop the program hover the mouse pointer over variables and get instantly values, modify them and go backwards and try modifications without the need to start the program fomr the beginning. I am talking about very long bash scripts
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
为了调试,使用以下命令执行脚本:
gui 调试器:
http://bashdb.sourceforge.net/
for debugging execute your script with:
gui debugger:
http://bashdb.sourceforge.net/
Bash 版本 3 的调试器(Bourne Again shell)。 Eclipse 的插件。仅适用于 shell 脚本编辑器 ShellEd。
http://sourceforge.net/projects/basheclipse/
Debugger for Bash version 3(Bourne again shell). Plugin for Eclipse. Will only work with shell script editor ShellEd.
http://sourceforge.net/projects/basheclipse/
我找到了
vscode-bash-debug
扩展(https://github.com/rogalmic/vscode-bash-debug)对于
Visual Studio Code
编辑器 (https://code.visualstudio.com/) 非常有用的。I have found the
vscode-bash-debug
extension (https://github.com/rogalmic/vscode-bash-debug) for the
visual studio code
editor (https://code.visualstudio.com/) very useful.我还没有遇到过可视化调试器,但 bashdb 非常适合调试。您可以设置断点、继续、打印变量等。
https://sourceforge.net/projects/bashdb/
通过您的发行版存储库安装。这里有一个快速入门指南:
http://www.rodericksmith.plus.com/outlines/manuals/bashdbOutline.html
(第一章只需半小时即可阅读/尝试)。
I haven't come across a visual debugger, but bashdb works quite well for debugging. You can set breakpoints, continue, print variables etc..
https://sourceforge.net/projects/bashdb/
Install via your distro's repositories. There is a quick-start guide here:
http://www.rodericksmith.plus.com/outlines/manuals/bashdbOutline.html
(first chapter takes only half an hour to read/try).