如何调试鱼脚本? [英] how to debug fish script?
本文介绍了如何调试鱼脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您可以调试bash脚本,如下所示:
bash -x script [arg1 ...]`
问题
什么是 fish
等价?
Question
What is the fish
equivalent?
推荐答案
鱼类使用相似的标志系统:
Fish use a similar flag system:
fish -d 3 script.fish
其中 d
是调试标志,后跟详细级别:
Where d
is the debug flag followed by the verbosity level:
-d或--debug-level = DEBUG_LEVEL指定鱼的详细程度。更高的数字意味着更高的冗长度。默认级别为1。
-d or --debug-level=DEBUG_LEVEL specify the verbosity level of fish. A higher number means higher verbosity. The default level is 1.
这篇关于如何调试鱼脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文