netbeans php - 无法设置断点
netbeans php - cannot get breakpoints to work
我已经阅读并尝试了我发现的内容,但我无法让它工作,它只是在开始调试时一直挂在 "Waiting for connection (netbeans-xdebug)"。
我确实安装了 xdebug(我使用的是 wamp),我实际上已经设法让断点与 sublime text 2 一起工作(是的,没错!)所以问题不在我的电脑上 php/xdebug本身,但我缺少一些设置。
我的 php.ini 用于 xdebug:
; XDEBUG Extension
[xdebug]
;zend_extension ="c:/wamp64/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11-x86_64.dll"
zend_extension ="c:\wamp64\bin\php\php5.6.25\ext\php_xdebug-2.5.4-5.6-vc11-x86_64.dll"
xdebug.remote_enable = 1
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="c:/wamp64/tmp"
xdebug.show_local_vars=0
xdebug.remote_hander =dbgp
xdebug.remote_mode = req
xdebug.remote_host =127.0.0.1
xdebug.remote_port = 9000
xdebug.idekey=netbeans-xdebug
xdebug.remote_connect_back=1
xdebug.remote_autostart=1
Netbeans 调试选项设置为默认值,除非我未选中 "stop at first line" 因为我在某处读到过这样做。
如果您需要更多信息,请告诉我。
我自己发现了这个问题(因为其他一切似乎都在我这边),netbeans 出于某种原因不会调试非 root urls,当然我不想每次都打开根目录,所以我用常规 url (www.someurl.com) 为该特定项目创建了一个虚拟主机,现在它似乎工作正常。
此外,我不确定我的 php.ini xdebug 设置中是否需要每一行,但我一直如此,因为我懒得检查冗余行,所以如果您不确定你的 xdebug 设置只是从我的 Q 中复制整个东西。
我已经阅读并尝试了我发现的内容,但我无法让它工作,它只是在开始调试时一直挂在 "Waiting for connection (netbeans-xdebug)"。
我确实安装了 xdebug(我使用的是 wamp),我实际上已经设法让断点与 sublime text 2 一起工作(是的,没错!)所以问题不在我的电脑上 php/xdebug本身,但我缺少一些设置。
我的 php.ini 用于 xdebug:
; XDEBUG Extension
[xdebug]
;zend_extension ="c:/wamp64/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11-x86_64.dll"
zend_extension ="c:\wamp64\bin\php\php5.6.25\ext\php_xdebug-2.5.4-5.6-vc11-x86_64.dll"
xdebug.remote_enable = 1
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="c:/wamp64/tmp"
xdebug.show_local_vars=0
xdebug.remote_hander =dbgp
xdebug.remote_mode = req
xdebug.remote_host =127.0.0.1
xdebug.remote_port = 9000
xdebug.idekey=netbeans-xdebug
xdebug.remote_connect_back=1
xdebug.remote_autostart=1
Netbeans 调试选项设置为默认值,除非我未选中 "stop at first line" 因为我在某处读到过这样做。
如果您需要更多信息,请告诉我。
我自己发现了这个问题(因为其他一切似乎都在我这边),netbeans 出于某种原因不会调试非 root urls,当然我不想每次都打开根目录,所以我用常规 url (www.someurl.com) 为该特定项目创建了一个虚拟主机,现在它似乎工作正常。
此外,我不确定我的 php.ini xdebug 设置中是否需要每一行,但我一直如此,因为我懒得检查冗余行,所以如果您不确定你的 xdebug 设置只是从我的 Q 中复制整个东西。