Using NetBeans to debug PHP?

后端 未结 1 540
南旧
南旧 2021-01-24 18:22

UPDATE 1:

I have made a change in:

/etc/php5/apache2/conf.d/xdebug.ini

looks like this:

zend_extension         


        
1条回答
  •  礼貌的吻别
    2021-01-24 18:34

    Your xdebug settings seem fine, although you might need to add another line

    xdebug.remote_enable=1
    

    And you probably need to check/change a few settings in Netbeans. Go to Tools - Options - PHP - General and verify that the debugger port is set to 9000 (as is your xdebug port) and the session id is set to netbeans-xdebug

    You can verify that xdebug is running when you go to a page that calls phpinfo() and check for xdebug in the output.

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