Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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.



35.5k
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.phalconphp.com/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.phalconphp.com/en/latest/reference/dispatching.html#handling-not-found-exceptions

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