Debugging Troubleshooting 2025

Comprehensive bash script debugging and troubleshooting techniques for 2025. PROACTIVELY activate for: (1) debugging a misbehaving bash script, (2) using set -x, set -e, set -u, set -o pipefail (strict mode), (3) customizing PS4 for richer trace output, (4) trap DEBUG, ERR, and EXIT for diagnostics, (5) bashdb and other interactive debuggers, (6) profiling slow scripts (timing, BASH_REMATCH overhead), (7) reproducing CI-only failures locally, (8) resolving unbound variable or command not found errors, (9) understanding subshell vs current-shell variable scope. Provides: strict-mode template, PS4 patterns, trap recipes for instrumentation, profiling techniques, and a step-by-step debugging playbook.

josiahsiegel Updated

File contents

josiahsiegel/claude-plugin-marketplace/tree/main/plugins/bash-master/skills/debugging-troubleshooting-2025 commit e257ef9054

Frequently asked questions

npx skillmds@latest add josiahsiegel/debugging-troubleshooting-2025