Page 1 of 1

Eclipse debugging

Posted: Thu Jun 24, 2010 9:39 am
by alex.barylski
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

Re: Eclipse debugging

Posted: Thu Jun 24, 2010 9:44 am
by alex.barylski
Seems as though you can override the variables, but if I have to do this everytime, that is a bit of a PITA. :(