Page 1 of 1

Debug on agent interface

PostPosted: Thu May 26, 2011 2:09 pm
by marcoe
Hello guys,

I'm trying to debug some hangup issues that I'm having, and looking at the code in manager_send.php we notice that it is capable of echoing queries when variable $format is equal to "debug". Sorry to be this ignorant, but since manager_send.php is run from behind the scenes, where can I get this "print outs" ??

Thanks.

PostPosted: Thu May 26, 2011 2:29 pm
by mflorell
Look for this at the top of the script:


$mel=1; # Mysql Error Log enabled = 1


Just change it to 2 and you will log every MySQL query to a log file in the agc directory.

This works for other PHP scripts in the agc directory as well.

PostPosted: Thu May 26, 2011 3:31 pm
by marcoe
Thanks for the help, this debug is really great.