NuSphere Forums Forum Index
NuSphere Forums
Reply to topic

Are you interested in Symfony integration?
Yes
23%
 23%  [ 3 ]
No
76%
 76%  [ 10 ]
Total Votes : 13

Symfony CLI


Joined: 25 Dec 2008
Posts: 21
Reply with quote
I recently received a press release from a competing IDE and noticed that they have full symfony awareness and CLI support in their latest version.

I know symfony isn't wildly popular amongst PhpEd users - but this is a great idea that will tempt me away!

Anyone else interested in built-in Symfony support for PhpEd?

Confused


[Perhaps this should have been posted in the feature request forum, sorry ops!)
View user's profileFind all posts by Disgruntled UserSend private message


Joined: 25 Dec 2008
Posts: 21
Reply with quote
OK looks like its just me, so I'll shut up Smile
View user's profileFind all posts by Disgruntled UserSend private message


Joined: 25 Dec 2008
Posts: 21
Reply with quote
OK What about an integrated command line - like the terminal window, but for local windows command prompt?
View user's profileFind all posts by Disgruntled UserSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7887
Reply with quote
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
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 25 Jul 2006
Posts: 70
Reply with quote
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
View user's profileFind all posts by cpriestSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7887
Reply with quote
Quote:
I too am not able to profile a remote CLI script properly


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
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 25 Jul 2006
Posts: 70
Reply with quote
I've never been able to get that format to work either, here's the complete command line I'm using (from Ubuntu Cool, 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
View user's profileFind all posts by cpriestSend private message


Joined: 25 Jul 2006
Posts: 70
Reply with quote
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.
View user's profileFind all posts by cpriestSend private message


Joined: 25 Jul 2006
Posts: 70
Reply with quote
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...
View user's profileFind all posts by cpriestSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7887
Reply with quote
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
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 25 Jul 2006
Posts: 70
Reply with quote
Hi Dmitri, it doesn't work.
View user's profileFind all posts by cpriestSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7887
Reply with quote
Dear cpriest,
It works fine. If you experienced problems, please contact NuSphere Support and provide all the details.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Symfony CLI
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 2  

  
  
 Reply to topic