Debugging php-cli scripts with xdebug and netbeans?

前端 未结 7 984
闹比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:38

    I had the same problem my solution was this:

    In Netbeans > the project window > right click on the php project > properties > Run configuration. Create a New Configuration.

    Fill the correct values:

    • Run as "script"
    • set php interpreter
    • change index file in my case it was "cron/index.php".
    0 讨论(0)
提交回复
热议问题