Andreas
Andreas

Reputation: 2678

Improving debugging of symfony applications with eclipse

I have some problems debugging my symfony 1.4 applications with eclipse.

I am using:

When I am starting symfony like this:

http://myURL/frontend_dev.php/event?XDEBUG_SESSION_START

everything works fine but when I click on the id to edit, it 'forgets' that I am in the debug mode. Of course I can change it manually back by typing

http://myURL/frontend_dev.php/event/1/edit?XDEBUG_SESSION_START

but that's annoying, if you debugging this several times.

Concatenating an equals value, e.g.

http://myURL/frontend_dev.php/event?XDEBUG_SESSION_START=1

only works for the next page and after that the session and the cookie is gone.

Knows someone what happening there? Any help much appreciated!

Upvotes: 1

Views: 1493

Answers (2)

sgibly
sgibly

Reputation: 3838

When you start a debug session, XDebug writes a cookie that expires after an hour, or until there is a call with XDEBUG_SESSION_STOP (see http://xdebug.org/docs/remote). So, basically, your debug client should get a hit no matter what.

That leads me to believe you are probably not starting the session as you should, that is through an eclipse (PDT, or any other) PHP Remote Launch Configuration. If you just trigger the session-start using a URL, the client (eclipse) might not be ready to accept any further calls after the first hit.

Let me know if that helps, or you need any more clarifications.

Cheers!

Upvotes: 2

RobertoP
RobertoP

Reputation: 637

Add this to your php.ini

xdebug.profiler_enable = 1;

This will tell XDebug to profile every page.

Upvotes: 0

Related Questions