I just installed WAMP on Windows XP. I have a simple PHP file that is crashing. I ran it from command line using php test.php.
What is the best way to debug php files? How do I display debugging info?
I looked at php.ini and it includes display_errors = On. Does this do anything?
I tried turning on XDebug from the PHP WAMP menu. This doesn’t seem to do anything, besides restarting the server. Do I need to use this? How?
Thanks.
You can look at the log at
c:/wamp/logs/php_error.log. If you are not sure whether your PHP log is being redirected here, check yourphp.inifile and search for a line like this:;error_log = "c:/wamp/logs/php_error.log"You may want to remove the comment on this line.