NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Remote debugging - how can I start profiler from CLI?


Joined: 30 Jun 2009
Posts: 79
Reply with quote
Hi,

I'm on PHPEd v 10.

The following line starts debugger fine when executed from remote server CLI:

Code:
/var/web$: php cli.php DBGSESSID=1@myhost:7777;d=1


However, the following line does NOT initiate client-side profiling:

Code:
/var/web$: php cli.php DBGSESSID=1@myhost:7777;p=1


Why is that?

Thanks!
View user's profileFind all posts by temuriSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
may be beause you're under unix and forgot that ; is a delimiter for the commands in shell?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 27 Feb 2011
Posts: 19
Reply with quote
DBGSESSID=1@clienthost:7869;d=1,p=1

Please read all about DBG debugger here http:// docs.mirocow.com/doku.php?id=php:dbg
View user's profileFind all posts by MirocowSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
Sometimes people forget that NuSphere do also have information on their own web site Smile

http://www.nusphere.com/kb/technicalfaq/faq_dbg_related.htm
View user's profileFind all posts by plugnplaySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
you didn't get the point Smile
Please check the line again:
Code:
/var/web$: php cli.php DBGSESSID=1@myhost:7777;p=1

It will never work because in Unix world it is considered as TWO different commands:
Code:
/var/web$: php cli.php DBGSESSID=1@myhost:7777

and
Code:
/var/web$: p=1

This is because ";" -- semicolon is a delimiter for the commands.
If you want to run such things in the command line, you have to escape them or use quotes like below
Code:
/var/web$: php cli.php "DBGSESSID=1@myhost:7777;p=1"
/var/web$: php cli.php DBGSESSID=1@myhost:7777\;p=1

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Remote debugging - how can I start profiler from 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 1  

  
  
 Reply to topic