Hello,
I'd like to spend my next time in adding the debugging features.
This is needed, because the other big open issue is the check of the
userinput. If the userinput is wrong, then I need to display debug output.
Therefore I we should first define how to store and present debug output.
I was thinking about an array in vboxConf:
debugInfo [$i] [class] [group] [header] [description]
together with the vboxConf->debug, which defines the debug level.
This would be an array where we append all debug in the situation they occur.
In the sources we would then add lines like:
if ($vboxConf->debug > 2) {
$debug=array();
$debug[class]="1"; #1 = critical <-> #6 information
$debug[group]="vboxIO";
$debug[header]="Cannot find sox";
$debug[description]="I cannot find the program sox. \n
Either you don't have it installed
or the path in vboxconf.inc.php is
wrong\n
Please check your installation.";
}
Class can be used for an icon.
debug=0 is always shown, there we display the normal answers.
What do you think?
Philipp
|