ZendDebugger+Symfony (php-cli)

This is for discussion, mainly on 1.x but there's some 2.x topics here too.

Moderators: dwhittle, Ian

ZendDebugger+Symfony (php-cli)

Postby AliceD » Mon Apr 02, 2012 12:00 pm

Hi,

please excuse my poor english. I use ZendStudio with ZendDebugger under windows 7 and set up my environment according to http://kb.zend.com/index.php?View=entry&EntryID=130
My environment var QUERY_STRING is set to "start_debug=1&debug_host=127.0.0.1&no_remote=1&debug_port=10137&debug_stop=0"
I want to debug a symfony task (c:\sfproject\>php symfony taskName). If i execute this task from command-line zenddebugger (zendstudio) jumps to first line in symfony script (not the task).
I set several breakpoints in my task but zenddebugger (zendstudio) doesn't stop at one.

What could be the problem? How can i solve this?
AliceD
Junior Member
 
Posts: 16
Joined: Thu Nov 06, 2008 5:18 pm

Re: ZendDebugger+Symfony (php-cli)

Postby AliceD » Thu Apr 05, 2012 5:34 pm

hi again,

i found a workaround to debug my symfony task. if i step into "include(sfCoreAutoload::getInstance()->getBaseDir().'/command/cli.php');" (last line in symfony script) sfCoreAutoload.class.php opens in a new view (see screenshot). Further, if i step over till i am in my task a can set a breakpoint. if i restart my debug session now from cli, i dont have to step over again and again, the debugger jumps directly to my breakpoint.

So, what view is this and how can i open a file with it?

Image
AliceD
Junior Member
 
Posts: 16
Joined: Thu Nov 06, 2008 5:18 pm

Re: ZendDebugger+Symfony (php-cli)

Postby AliceD » Tue Apr 10, 2012 12:21 pm

hi,

now finally i found the solution.

In ZendStudio: Window->Preferences->PHP->Debug->Workbench Options: disable <Open in Browser>
in windows environment var QUERY_STRING use: use_remote=1

eg: set "QUERY_STRING=start_debug=1&debug_host=127.0.0.1&use_remote=1&debug_port=10137&debug_stop=0&debug_fastfile=1"
AliceD
Junior Member
 
Posts: 16
Joined: Thu Nov 06, 2008 5:18 pm


Return to General discussion

Who is online

Users browsing this forum: No registered users and 4 guests