This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
debugging [2016/04/29 20:25] datiswous [How do I know if debug mode is enabled?] |
debugging [2023/11/27 18:55] (current) 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 ===== | ||
Line 91: | Line 95: | ||
Always post | Always post | ||
+ | * Version of PHP | ||
* Your platform, windows etc. | * Your platform, windows etc. | ||
* If your host is a special one, free or cloud based or lamp/wamp | * If your host is a special one, free or cloud based or lamp/wamp |