NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[RESOLVED] use phped to debug CLI (command-line) php files?


Joined: 19 Jun 2006
Posts: 24
Location: florida
Reply with quote
yes i am trying to get phped to debug a command-line driven php script, and can't seem to get it to work.

i created a shell command with the following parameters...

C:\xampplite\php\php C:\xampplite\htdocs\spp\crm\app\cli\run.php -c mail -a third.payment.report

this fires up a command-line session of php.exe on run.php with the parameters "-c mail -a third.payment.report", which in turn runs an method (called thirdPaymentReportAction) in MailController.php. this is a zend framework project.

the problem is that if i try to put a break point or add a debugbreak(); call, it either gets ignored (breakpoint) or an error is thrown (debugbreak).

is there some trick to get phped to connect to the command line script?

thanks,
- mark


Last edited by menriquez on Sat Nov 22, 2008 11:51 am; edited 1 time in total
View user's profileFind all posts by menriquezSend private messageVisit poster's websiteYahoo Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
debugbreak() needs to know where the ide to connect to.
try this: debugbreak('1@localhost');

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


Joined: 19 Jun 2006
Posts: 24
Location: florida
Reply with quote
as usual, dmitri, your assistance is spot on...

thanks!
- mark
View user's profileFind all posts by menriquezSend private messageVisit poster's websiteYahoo Messenger
[RESOLVED] use phped to debug CLI (command-line) php files?
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