ZendDebugger+Symfony (php-cli)

General discussion on Zend Studio

ZendDebugger+Symfony (php-cli)

Postby aliced on Fri Mar 30, 2012 3:36 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
 
Posts: 3
Joined: Fri Mar 30, 2012 3:14 pm

Re: ZendDebugger+Symfony (php-cli)

Postby aliced on Thu Apr 05, 2012 4:32 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 attachment). 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?
Attachments
debug.jpg
view screenshot
debug.jpg (9.22 KiB) Viewed 277 times
aliced
 
Posts: 3
Joined: Fri Mar 30, 2012 3:14 pm

Re: ZendDebugger+Symfony (php-cli)

Postby aliced on Tue Apr 10, 2012 11:21 am

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
 
Posts: 3
Joined: Fri Mar 30, 2012 3:14 pm


Return to Zend Studio

Who is online

Users browsing this forum: No registered users and 2 guests