我使用NetBeans8.1进行PHP开发,最近我安装了PHP7和xDebug不再工作了。我喜欢使用Netbeans,我需要使用PHP 7。
是否有任何方法配置Netbeans和Apache以支持调试?(我用PHP 7安装了XAMPP )
我调查了那些地点,但没有运气:https://netbeans.org/kb/docs/php/debugging.html http://wiki.netbeans.org/HowToConfigureXDebug
据我所知,PHP7不支持xdebug,但是如果您设法使它正常工作,请与我分享。
发布于 2016-10-31 14:51:02
要下载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=1100xdebug对我来说很好。祝好运
发布于 2016-04-12 14:03:32
php7的第一个版本的xdebug对我来说是行不通的。最近的版本确实起了作用。
下面是我目前正在工作的conf 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中,我确实设置了路径映射值
希望这能有所帮助。
发布于 2016-09-24 08:35:47
我安装了Netbeans 8.1的新版本,我花了很多时间寻找调试php 7的解决方案,所以我可能会分享我的配置:
[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=360000https://stackoverflow.com/questions/36216321
复制相似问题