Debugging php-cli scripts with xdebug and netbeans?

前端 未结 7 1116
闹比i
闹比i 2021-01-29 19:40

I have managed to initiate php-cli script debug session from the IDE itself, but I need to start the debugging session from the shell / command line. These are rather complex ma

7条回答
  •  自闭症患者
    2021-01-29 20:14

    Add xdebug.remote_autostart=On to your php.ini file or add -dxdebug.remote_autostart=On as parameter to the PHP binary call (php -d... script.php).

    See http://xdebug.org/docs/remote

提交回复
热议问题