Hi all
How can I debug a PHP script launched from another PHP script using exec()?
I tried everything and I cannot make Netbeans stop on a debug_break() in the launched script.
Example:
test1.php
------------
<?php
debug_break(); // works, Netbeans stops here
exec('/usr/bin/php test2.php');
?>
test2.php
------------
<?php
debug_break(); // do not work, Netbeans never stops here
echo "hello";
?>
I also tried to export XDEBUG_CONFIG but it doesn't work either:
<?php
shell_exec('export XDEBUG_CONFIG="idekey=netbeans-xdebug"; /usr/bin/php test2.php');
?>
Is there any way to make this work?
Thanks.
Received on Tue Nov 15 2011 - 14:47:21 GMT
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST