PHP7 netbeans 8.1调试器需要支持,如何使其工作


PHP7 netbeans 8.1 debugger support needed, How to make it work?

我使用Netbeans 8.1在PHP中进行开发,最近我安装了PHP7,xDebug不再工作。我喜欢使用Netbeans,我需要使用PHP7。

有什么方法可以配置Netbeans和Apache来支持调试吗?(我用PHP 7安装了XAMPP)

我查看了那些位置,但没有运气:https://netbeans.org/kb/docs/php/debugging.htmlhttp://wiki.netbeans.org/HowToConfigureXDebug

据我所知,PHP7不支持xdebug,但如果您设法使其工作,请与我分享。

要下载php7的xdeubg,请选择与您的php版本匹配的版本。https://xdebug.org/download.php

我的设置如下:

zend_extension = "c:/xampp/php/ext/php_xdebug.dll"
xdebug.idekey = netbeans-xdebug
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "c:/xampp/tmp/xdebug"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_autostart = 0
xdebug.remote_connect_back = 0
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp"
xdebug.remote_mode = req
xdebug.remote_log = "c:/xampp/tmp/xdebug/xdebug_remot.log"
xdebug.show_local_vars = 9
xdebug.trace_output_dir = "c:/xampp/tmp"
xdebug.max_nesting_level=1100

xdebug对我很好。祝好运

php7的xdebug的第一个版本对我不起作用。最近的版本起了作用。

以下是我目前正在使用的php7/xdebug/netbeans:文件

    Client
    Product Version: NetBeans IDE 8.1 (Build 201510222201)
    Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
    Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
    Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
    System: Windows 7 version 6.1 running on amd64; Cp1252; fr_FR (nb)
    Server
    Apache : 2.4.18-win64-VC14
    PHP Version 7.0.3RC1
    Windows Server 2012 R2 Standard Edition AMD64
    php.ini
    [xdebug]
    zend_extension = <php_install_path>/ext/php_xdebug-2.4.0rc4-7.0-vc14-x86_64.dll
    xdebug.remote_enable = On
    xdebug.remote_host=<my_IP_(using_VPN)>
    xdebug.remote_port=9000
    xdebug.remote_handler=dbgp
    xdebug.idekey="netbeans-xdebug"
    output_buffering=off
    xdebug.remote_cookie_expire_time=360000

在Netbeans中,我确实设置了路径映射值

希望这能有所帮助。

我安装了Netbeans 8.1的新版本,我花了很多时间寻找调试php7的解决方案,所以也许我会分享我的配置:

[XDebug]
zend_extension ="C:'xampp'php'ext'php_xdebug-2.4.0rc4-7.0-vc14.dll"
xdebug.remote_enable = 1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.idekey=netbeans-xdebug
output_buffering=off
xdebug.remote_cookie_expire_time=360000