How to debug a fish script?

You can debug the bash script as follows:

bash -x script [arg1 ...]`

Question

What is the equivalent? fish

+4
source share
1 answer

The fish uses a similar flag system:

fish -d 3 script.fish

Where dis the debug flag followed by the verbosity level :

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

+6
source

Source: https://habr.com/ru/post/1619256/


All Articles