NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Steps to setup window CLI debug enviornment?


Joined: 08 Jan 2007
Posts: 3
Reply with quote
hi, i wonder what are the steps to setup LOCAL and Remote CLI debug enviornment for (local win) remote (win->linux)

i want to able to debug the following lines of code in a command console output

<?php
foreach($_ENV as $k=>$v){
fwrite(STDOUT,"$k: $v \n");
}
//test PEAR
$ch = curl_init();


?>
View user's profileFind all posts by andrey99Send private message
Veteran

Joined: 24 Jan 2006
Posts: 311
Reply with quote
have you looked at this post: php-cli-script-debugging-with-dbg-cli-t1672.html?highlight=cli
Does it help?
View user's profileFind all posts by yfaktorSend private message


Joined: 08 Jan 2007
Posts: 3
Reply with quote
yup, i have read that post but still donno what to do.

I wonder how the debugger works with output of -- fwrite(STDOUT,"$k: $v \n"); --
coz if i change all STDOUT to PRINT, it will work just fine inside PhpEd....

I want to able to debug the scripts in a command console window...
View user's profileFind all posts by andrey99Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
both remote and local are supported, but you have to start debug session somehow.
IDE does it by supplying DBGSESSID with appropriate value in the URL.
If you run such scripts in a console and you need to start debug session, just call DebugBreak('1@clientIP:clientPORT;d=1')
where clientIP is client IP or hostname where you run PhpED (localhost in case of ssh tunnel or in case of local debug).
clientPORT is dbglistener's port, by default it is 7869.
Alternatively, you can run your script with DBGSESSID=1@clientIP:clientPORT;d=1 command line argument.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Steps to setup window CLI debug enviornment?
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