Eclipse debugging
Posted: Thu Jun 24, 2010 9:39 am
I've installed Zend debugger and configured Eclipse and WAMP to allow debugging. Everything works, however I just encountered an interesting problem.
Authentication?!?
My system, for obvious reasons, uses $_SESSION to store user ID's which an filter redirects to an error page when ZERO. When I invoke the debug, my requested action won't execute so I'm wondering how you all work around this issue?
I cannot override the id_user with a GPC variable, so short of adding a DEBUG constant and assigning a default ID when user-agent (or some context check - assuming debugger provides some variables which are not available in production execution) what else can I do? Is there a way (on a per debug context) to provide $_SESSION variables?
I have a separate instance of the application logged in, hoping that Eclipse would use that session, this is not the case.
Ideas?
Cheers,
Alex
Authentication?!?
My system, for obvious reasons, uses $_SESSION to store user ID's which an filter redirects to an error page when ZERO. When I invoke the debug, my requested action won't execute so I'm wondering how you all work around this issue?
I cannot override the id_user with a GPC variable, so short of adding a DEBUG constant and assigning a default ID when user-agent (or some context check - assuming debugger provides some variables which are not available in production execution) what else can I do? Is there a way (on a per debug context) to provide $_SESSION variables?
I have a separate instance of the application logged in, hoping that Eclipse would use that session, this is not the case.
Ideas?
Cheers,
Alex