This variable can be found in the main file in WebTechGlobal plugins (coming 2012). It is used to control the amount of test data to be displayed on the interface while using the plugin. Only beta testers, developers or anyone helping to debug will use this feature. It must be controlled within PHP, this page describes the values we can store in the variable and the information that will be output. We can easily customize the output and you can do so by editing the wtgpt_display_testing_info() function found in wtgpt_interface.php or a similiar named file in other plugins.
The scale system goes from 0 to 9 and a letter for each number, A to I. Adding a number value to the variable indicates we want all levels of output before that number to be displayed. If we use a letter, it will only output the data for that letter. This is a very quick way to display a lot of data then shorten it to something specific. Sometimes I want specific values to be displayed for many days as part of long term testing and this approach allows me to increase or decrease the output while always viewing values that are a higher priority.
Critical Information: Zero is the default value, showing a limited amount of information, no major dumps of $_POST data and long lists. However the most critical values stored by the plugin will be displayed as a way of constantly checking the plugins state or a projects state depending on the type of plugin being used.
$_POST dump: setting it to the value of one will include the output from 0 and also extend the output with a var_dump of $_POST i.e. var_dump($_POST). In some cases this can be a lot of information so I’ve made it number 5 so we can make use of various other levels of output without having to display $_POST every time a form is submitted.
Package and Version Check: the last one is really meant for myself to double check all values have been updated properly when creating new versions.
Some numbers and letters on the scale are simply not in use yet. This approach is new but I’m finding it very useful. I can display information from all actions during testing by changing a single value in the main file rather than adding things like var_dump($_POST) to applicable files.