xdebug does not activate the breakpoint

天涯浪子 提交于 2019-12-02 05:16:08

First of all, you do need to turn on xdebug.remote_enable=1 — without that, debugging is not activated and it will not work.

For requests after the first "login", xdebug.remote_autostart should deal with that, but it is possible that Netbeans doesn't accept the new incoming debugging connection. To find out what Xdebug is trying to do, add the setting xdebug.remote_log=c:\temp\xdebug.log and investigate what's in the log. (You might have to change the path).

This is what I did with the help of Derick's answer:

Step 1: Change xdebug.remote_port=9000 to xdebug.remote_port=9001

Step 2:

  1. Change the debugging port in Netbeans. Go to Tools >> Options >> Click PHP tab
  2. Under PHP tab click debugging
  3. Change the debugger port : 9001
  4. Change Session ID : netbeans-xdebug

Step 3: Restart server and netbeans

Step 4: Set a breakpoint and try

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!