---

Debugging your scripts even more effectively

The -x and -v options can be used on the shebang line to turn on trace or verbose options so that, when you run your script, you see each command as it is being executed. Well, this isn’t the only way that you can use these options. You can also turn them on and off at various points within your scripts.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis