What Is Debug Mode in Linux?
Contents How Do I Enable Debugging in Linux? Linux Agent – Enable Debug Mode # Enable Debug Mode (Comment or Remove Debug Line to Disable) Debug=1. Now Restart...
Contents
How do I enable debugging in Linux?
Linux Agent – Enable Debug mode
- # Enable Debug mode (comment or remove debug line to disable) Debug=1. Now restart the CDP Host Agent module:
- /etc/init.d/cdp-agent restart. To test this you can ‘tail’ the CDP Agent log file to see the new [Debug] lines that are added to the logs.
- tail /usr/sbin/r1soft/log/cdp.log.
Must Read
How do I debug a Linux script?
Bash shell offers debugging options which can be turn on or off using the set command:
- set -x : Display commands and their arguments as they are executed.
- set -v : Display shell input lines as they are read.