I'm just starting with Phalcon (following the INVO tutorial) and even though I'm really interested and excited by the framework, I get really frustrated with the error management.
First of all, I'm really surprised to not have a simple config parameter to switch the framework between a developer/debugging and productions modes right out of the box. Sure, now I've spent quite some time on it, it seems simple: removing the try/catch, instanciate the Phalcon\Debug and listen for errors...
My point is: it should be there by default in the bootstrap, with a nice comment telling us to replace it by a try/catch when reaching production. Do you realize developers are the first ones using the framework, and way, way later comes the production optimizations? Why not making is easy for developers (me and many others ) so we don't have to struggle and waste so much time looking in the forum for it. On top of that you have a really nice debugger, it's such a shame to not promote it.
Now, the main purpose of this post... So I'm using the Invo tutorial, got the debugger activated, and I'm struggling with the first SQL query. When I try to log in (/session/start), I get redirected instantly to the show500 error page. So I've placed a few traces in the code, and everything stops right on the first query:
SessionController.php >> startAction() >> $user = Users::findFirst(array(...)) ~line 50 Problem is, once again and despite the debugger, I don't have any error reported to me.
So could someone tell me what are my options here ? Alternatively, how can I get a full, raw, unprocessed error message ? Thanks in advance for the help. Cheers
EDIT: if I manually connection to my database and run a select query, everything works fine, aka my db params are correct.