Your Question: How Do I Enable Debugging in Linux?
Contents What Is Debug Mode in Linux? a Debugger Is a Tool That Can Run a Program or Script That Enables You to Examine the Internals of the Script or Program...
Contents
What is debug mode in Linux?
A debugger is a tool that can run a program or script that enables you to examine the internals of the script or program as it runs. In the shell scripting we don”t have any debugger tool but with the help of command line options (-n, -v and -x ) we can do the debugging.
Must Read
How do I run a Linux script in debug mode?
Start your bash script with bash -x ./script.sh or add in your script set -x to see debug output. You can use option -p of logger command to set an individual facility and level to write output via local syslog to its own logfile.