This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
debugging [2016/09/17 13:44] shawn_a [Reporting issues in forums, or requesting assistance] |
debugging [2023/11/27 18:55] Knobbles [The error log] |
||
---|---|---|---|
Line 12: | Line 12: | ||
To turn on debugging, uncomment the GSDEBUG line in /path/to/getsimple/gsconfig.php to enable full PHP errors output to help debug in your browser. | To turn on debugging, uncomment the GSDEBUG line in /path/to/getsimple/gsconfig.php to enable full PHP errors output to help debug in your browser. | ||
+ | ===== The error log ===== | ||
All PHP errors are also written to a log,regardless of the GSDEBUG setting, check /path/to/getsimple/**data/other/logs/errorlog.txt** | All PHP errors are also written to a log,regardless of the GSDEBUG setting, check /path/to/getsimple/**data/other/logs/errorlog.txt** | ||
+ | |||
+ | Hint: you can also write your own debug messages to the error log, just use the built-in php function **error_log("My debug message")**.\\ | ||
+ | Do not forget to remove your error_log() commands when troubleshooting is finished, so as not to constantly fill up the error log! | ||
===== 500 error in browser ===== | ===== 500 error in browser ===== |