NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
is there a way to debug a remote php-cli script using phped?


Joined: 18 Oct 2006
Posts: 2
Reply with quote
Is there a way to debug a remote php-cli script using phped?

I've been searching the forums and haven't found any answers concerning this?

I have remote debugging working great for my web app.
But also need to debug php-cli scripts that run from cron.

Thanks for any help.
View user's profileFind all posts by ozone1025Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
you'll need either DBGSESSID=1@hostname:port in the comand line or DebugBreak() function call in your code.
hostname - is IP address of the machine where you run PhpED. If you're behind proxy or NATed router, you'd use ssh tunneling and localhost as hostname. Port is normally 7869.

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


Joined: 18 Oct 2006
Posts: 2
Reply with quote
I added DBGSESSID=1@hostname:port as a commandline parameter to my php-cli script and was able to debug it remotely using phpED.

Thanks!

-larry
View user's profileFind all posts by ozone1025Send private message
is there a way to debug a remote php-cli script using phped?
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