Debugging php-cli scripts with xdebug and netbeans?

前端 未结 7 985
闹比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

    Make sure you also setup DBGP_IDEKEY value, because usually it is not idekey. For example on Linux:

    export DBGP_IDEKEY="netbeans-xdebug" 
    export XDEBUG_CONFIG="netbeans-xdebug=netbeans-xdebug"
    

提交回复
热议问题