Netbeans + Xdebug + php not working

前端 未结 8 2163
故里飘歌
故里飘歌 2020-12-18 01:41

My netbeans does not work the breakpoints using xdebug, my configuration looks correct, so I configured the first time I ran up to stop debugging the first time since then h

相关标签:
8条回答
  • 2020-12-18 02:42

    In my case - host is on another server, Net-beans 11 - I need to open terminal to remotehost

    Window -> IDE Tools -> Terminal -> Remote Terminal

    P.S. If u type export XDEBUG_CONFIG="idekey=netbeans-xdebug" in that terminal, and start debugging session, u can debug console scripts

    0 讨论(0)
  • 2020-12-18 02:45

    If you are still stuck you could try the following:

    • Download a new version of xdebug via the wizard (http://www.xdebug.org/wizard.php) and if you follow the instructions maybe you will be lucky.
    • Switching off the firewall might help.
    • Use a different port in netbeans, for instance in my case using 9001 in netbeans and 9000 in xdebug worked.
    • Add to php.ini file: xdebug.idekey=netbeans-xdebug.
    • Find out if you have a xdebug.ini file and add the xdebug related php.ini lines to that file.

    Always make sure that you restart your apache service to test everything.

    0 讨论(0)
提交回复
热议问题