Is it possible to see error messages?
I'm new to phpstorm. Now when i run project and there is an error somewhere i just see in browser blank page. But no information about where is my error and error message itself. So far i figured out that i can connect xdebug and go step by step till error occurs and only then i can see its text. But if i run xdebug with no breakpoints i don't get this error text in console. I'm sure there is some easy way to do that, can you please advise me.
Please sign in to leave a comment.
Hi there,
Check error.log for your PHP (error_log from php.ini) or your framework log.
Otherwise -- do what all modern frameworks do -- setup your own global exception/error handler and do any logging/reporting to specialized service/whatever you need there.
I don't think you need a specific configuration for PhpStorm. If your PHP installation is configured to display and/or log errors it should display and/or errors no matter how your run the script.