Concept Flow - Debugging with PS4
Set PS4 variable
Enable debugging with 'set -x'
Run script commands
Each command prints with PS4 prefix
Observe output with debug info
Disable debugging with 'set +x'
Script continues normally
Set PS4 to customize debug output prefix, enable debugging with 'set -x', run commands to see debug info, then disable debugging.