I don't know of a fix for that bug (though one should be out soon), but another way to debug is to create a chunk called debug and put something like this at the top of your snippet or plugin (or 'include' it there):
if (!function_exists("my_debug") && $scriptProperties['debug']) {
function my_debug($message, $clear = false)
{
global $modx;
$chunk = $modx->getObject('modChunk', array('name' => 'Debug'));
if (!$chunk) {
$chunk = $modx->newObject('modChunk', array('name' => 'Debug'));
$chunk->setContent('');
$chunk->save();
$chunk = $modx->getObject('modChunk', array('name' => 'Debug'));
} else {
if ($clear) {
$content = '';
} else {
$content = $chunk->getContent();
}
}
$content .= $message . "\n";
$chunk->setContent($content);
$chunk->save();
}
}
Then, if the the snippet tag has &debug=`1`, my_debug($msg) will append the message to the chunk content and my_debug($msg, true) clear the chunk and add the message.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/MODx.html