adding support for PTDEBUG on bash scripts

Bug #989951 reported by Olivier Doucet
6
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://bugs.launchpad.net/percona-toolkit/+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.

Tags: shell-tools
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

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

Changed in percona-toolkit:
status: New → Invalid
tags: added: shell-tools
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-965

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.