xdebug does not activate the breakpoint

后端 未结 2 1245
伪装坚强ぢ
伪装坚强ぢ 2021-01-24 03:24

I am using Netbeans to do my project(codeigniter) and my xdebug is configured in php ini. The following are the setting:

zend_extension = \"C:\\xampp\\php\\ext\\php_x         


        
相关标签:
2条回答
  • 2021-01-24 03:27

    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

    0 讨论(0)
  • 2021-01-24 03:34

    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).

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