how to debug fish script?

一笑奈何 提交于 2019-12-10 15:59:56

问题


You can debug a bash script like this:

bash -x script [arg1 ...]`

Question

What is the fish equivalent?


回答1:


Fish use a similar flag system:

fish -d 3 script.fish

Where d is the debug flag followed by the verbosity level:

-d or --debug-level=DEBUG_LEVEL specify the verbosity level of fish. A higher number means higher verbosity. The default level is 1.



来源:https://stackoverflow.com/questions/34188411/how-to-debug-fish-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!