adding support for PTDEBUG on bash scripts
Bug #989951 reported by
Olivier Doucet
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Several Percona Toolkit scripts are using bash as programming language.
For them, PTDEBUG env var is not used, but sometimes it could be useful to know what the tool is doing (to debug things like https:/
Adding the following line may provide a simple debug, to show everything executed :
if [ "$PTDEBUG" == "1" ]; then
set -x
fi
This could be added in all bash scripts in Percona Toolkit.
To post a comment you must log in.
Yes, we've discussed a need for PTDEBUG for the shell tools. Since this is not a but, I created a blueprint: https:/ /blueprints. launchpad. net/percona- toolkit/ +spec/ptdebug- for-shell- tools