|
Symfony CLI |
|
OK looks like its just me, so I'll shut up
|
||||||||||||
|
|
OK What about an integrated command line - like the terminal window, but for local windows command prompt?
|
||||||||||||
|
Site Admin
|
What kind of problems did you face in Symphony and/or PhpED?
For many years CLI is supported by PhpED as well as debugging Symphony. |
||||||||||||
_________________ The PHP IDE team |
|
Did you ever get this working? I too am not able to profile a remote CLI script properly.
I'm using DebugBreak(); It stops at the DebugBreak() line but no profile results show up. Tried using DebugBreak() with these parameters: '1@1.1.1.1;d=1,p=1' - Stops at DebugBreak but no profile results show up (Total: 0) '1@1.1.1.1;d=0,p=1' - Does not stop at DebugBreak(), no profile results show up PHP 5.2.4-2ubuntu5.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 11 2009 20:09:52) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with DBG v3.6.1, (C) 2000,2008, by Dmitri Dmitrienko |
||||||||||||
|
Site Admin
|
please check how this script is running. If possible, add either environment or command-line argument DBGSESSID=1@hostname;p=1 where hostname is IP address of your machine. "p" flag in DebugBreak() won't trigger profiler, it's too late for the profiler to start if at least one line of php is executed. |
||||||||||||||
_________________ The PHP IDE team |
|
I've never been able to get that format to work either, here's the complete command line I'm using (from Ubuntu , with my ip cleaned.
./script.DownloadNetworkConversions.php AffiliateNetworkID=14 DownloadDays=1 DBGSESSID=1@1.1.1.1;p=1 Doesn't invoke a connection to my machine at all. Putting it as the first parameter causes my script to not receive any arguments at all (not sure if that's another bug or something) but still fails to cause the profile session to begin. PHP 5.2.4-2ubuntu5.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 11 2009 20:09:52) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with DBG v3.6.1, (C) 2000,2008, by Dmitri Dmitrienko |
||||||||||||
|
|
Investigating further on the missing arguments that was my fault, I needed to escape the ; with a \. Even after doing so I am still not able to start a remote debugging session or profiling session via DBGSESSID parameters on the command line.
|
||||||||||||
|
|
Any idea why this may not be working from the command line? This doesn't have anything to do with Symfony, just plain command line profiling...
|
||||||||||||
|
Site Admin
|
DBGSESSID=1@1.1.1.1;p=1
it is supposed to work if your machine is accessible from the server with ip=1.1.1.1 and dbglistener is running on this machine and set to listen on 7869 ( the default) port. Feel free to follow the instructions http://forum.nusphere.com/tip-troubleshooting-debugger-communications-t579.html |
||||||||||||
_________________ The PHP IDE team |
|
Hi Dmitri, it doesn't work.
|
||||||||||||
|
Site Admin
|
Dear cpriest,
It works fine. If you experienced problems, please contact NuSphere Support and provide all the details. |
||||||||||||
_________________ The PHP IDE team |
Symfony CLI |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by