Hi ,
How to put alerts for debugging.
TIA
Regards,
Hanumanth.
Hi ,
How to put alerts for debugging.
TIA
Regards,
Hanumanth.
In menu application in the left panel you can set debug options so that ie. the sql statements are shown before execution. Otherwize you can create a log file and put your logs into that. You can create a standard logfile for sc and then add your own logs to it using a macro.
I use this code for that:
function debugprint($var)
{
echo '<pre>';
echo '<br>BEGIN DEBUGPRINT<br>';
print_r($var);
echo '<br> END DEBUGPRINT<br>';
echo '</pre>';
echo '<br>';
}
I put this function in a public library and use it in code via debugprint($varname);
Almost the same way. I needed to wrap my calling code inside <iframe> tags. Thanks!