We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to debug Phalcon on remote server?

Normally in local I have the debug component and it works very well. But once I uploaded my stuff onto Ubuntu there is no more error message. I know about xdebug but is there another way? (I am trying to debug the youtube oauth token refresh and I don't think xdebug can help me here)

Another question I have is if I get a 500 internal error on a page in Firebug, but that page has no error in Chrome dev tool, and that page works perfectly in local and local php logs showed no errors, what do I do?

Thanks in advance.



77.7k
Accepted
answer
edited Sep '15

I found this library really useful: https://github.com/snowair/phalcon-debugbar

You can implement your own error page too: https://docs.phalcon.io/en/latest/reference/dispatching.html#handling-not-found-exceptions

Also, maxing out loglevels on components (webserver, php, etc...) can reveal a lot

edited Sep '15

Yes I just found out I can turn on display errors on the webserver in the php.ini and there are stuff now. Thanks alot for the library.

I found this library really useful: https://github.com/snowair/phalcon-debugbar

You can implement your own error page too: https://docs.phalcon.io/en/latest/reference/dispatching.html#handling-not-found-exceptions

Also, maxing out loglevels on components (webserver, php, etc...) can reveal a lot