';
$workflowFunctionsWf_debug = true;
}
/* start the visible output */
$output .= '
';
$output .= 'Debug: ' . $name . ' |
';
/* start the backtrace section */
$output .= '';
$output .= 'Backtrace | ';
$output .= '';
$i = 1;
$output .= '';
foreach ($importantBacktrace as $call)
{
/* show some general information */
$output .= '' . $i++ . '- | ';
$output .= 'Arquivo: ' . $call['file'] . ' ';
$output .= 'Linha: ' . $call['line'] . ' ';
/* show different information for methods and functions */
if (isset($call['class']))
$output .= 'Método: ' . $call['class'] . $call['type'] . $call['function'] . '() ';
else
$output .= 'Função: ' . $call['function'] . '() ';
/* show the parameters used in the call */
$output .= 'Parâmetros: ';
if (empty($call['args']))
{
$output .= 'nenhum ';
}
else
{
$output .= ' ';
$j = 1;
foreach ($call['args'] as $arg)
{
if (is_array($arg))
$arg = 'array';
else
if (is_object($arg))
$arg = 'object';
$output .= ' #' . $j++ . ': ' . $arg . ' ';
}
}
$output .= ' | ';
}
$output .= ' ';
$output .= ' |
';
/* start the $_REQUEST section */
$randomName = mt_rand() . '_' . mt_rand(); /* unique preffix */
$formInput = '';
$output .= '$_REQUEST | ';
$output .= '';
$output .= ' |
';
/* check if exists a database connection */
$env = wf_get_env();
$output .= 'Banco de Dados | ' . (($env['dao']->Link_ID === 0) ? 'não conectado' : 'conectado') . ' |
';
/* end the table */
$output .= '
';
/* send the output */
echo $output;
}
?>