NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Debug as "command line" (mimic)


Joined: 08 Aug 2008
Posts: 2
Reply with quote
Hi all,

I'm a newbie on Phped (using 5.0). I tried to debug some existing code as to learn how to enhance it. But, the code expects to be run from "command line". The code breaks at the following test:

if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
print "This script must be run from the command line\n";
exit();
}

I tried to search in the help for any hints about how to mimic command line, but I couldn't find any. I'd like to know if there's a way to mimic running from command line while debugging, /without/ having to uncomment this check?

Any hints?

Regards,

// Rolf Lampa
View user's profileFind all posts by RILSend private message
Re: Debug as "command line" (mimic)


Joined: 08 Aug 2008
Posts: 2
Reply with quote
RIL wrote:
Hi all, ... running from command line while debugging,

Does anyone know if the debugger can be brought to respond an stop at break points under the following conditions:

1. Start a php script from Win32 XP command line (...>"php somescript.php" )
2. Breakpoints in somescript.php are set from the PHP IDE (5.5)
3. Using xampplite

Should this be possible to debug with the option "3rd Party Webserver"? ( I have tried hard all day (and googled & read the help files) but it seems like I can stop and step only if I start from the IDE).

// Rolf Lampa
View user's profileFind all posts by RILSend private message
Debug as "command line" (mimic)
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