To use, simply add this line to the script you want to debug:
Script.include( pathToDebugScript + ‘davedubDebug.js’ );
(You’ll need to set the path to where you have put the debug script)
Then, to display debug info:
debug.toLog(‘This will be displayed on the panel in Interface’);
The debug display can be toggled on and off with the letter ‘D’ (note caps).
You can download the script from here:
Hope you find it as useful as I do!