Eclipse debugging

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Eclipse debugging

Post 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
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Eclipse debugging

Post 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. :(
Post Reply