PTDEBUG for shell tools

Registered by Daniel Nichter

From bug 989951: 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 bug 986151).

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.

OBSOLETE: If all PTDEBUG=1 does is set -x, then simple /bin/bash -x <tool>.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Daniel Nichter

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.