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
Eclipse debugging
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Eclipse debugging
Seems as though you can override the variables, but if I have to do this everytime, that is a bit of a PITA. 