Developer's Manual  Function Reference  Debug functions  suDebugLog

suDebugLog

Outputs the debugger output to browser window.


void suDebugLog
()

Use the function to show the debugger window in SiteSupra console applications. Add call to the function at the end of the application script.

Example

<?
// start of console application
suSQLConnect($suSQL);

$html = Array();
$html[] = '<table>';

$data = $suSQL->queryData("SELECT title, path FROM " . suPAGES . " ORDER BY date");

for(
$i = 0, $m = count($data); $i < $m; $i++)
  
$html[] = '<tr><td><a href="/' . suLANG . $data[$i]['path'] . '">' . $data[$i]['title'] . '</a></td></tr>';

$html[] = '</table>';
echo
join('', $html);

// end of console application
// send debugger output to browser
echo suDebugLog();
?>
Please login to add comments.