是否可以逐行调试bash脚本? [英] Is it possible to debug bash scripts line-by-line?

查看:134
本文介绍了是否可以逐行调试bash脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我将喜欢Microsoft Visual Studio在 中的逐行调试,有没有工具或方法呢? set -x set -v 是不错但不完美的。

解决方案

请参阅 bashdb



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



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


I'll love something like Microsoft Visual Studio's line-by-line debugging in bash, with current variables values and so.

Is there any tool or way to do it? set -x and set -v are nice but not perfect.

解决方案

See bashdb.

If it's installed on your system, see man bashdb.

If it's not installed, see http://bashdb.sourceforge.net

这篇关于是否可以逐行调试bash脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆