您如何设置多开发人员XDebug PHP环境?
我有以下设置:
从代理的日志信息中可以看出,没有服务器的密钥为"ECLIPSE_DBGP",它会停止请求.
有没有人遇到这个或有一步一步的设置让这个工作?
我已经筋疲力尽我用google发现了什么.
我尝试使用xdebug和NetBeans来调试PHP.我开始调试,NetBeans等待与xdebug的连接.我有NetBeans 6.8(最新版本),我的mac上安装了最新的MAMP软件包.
我的php.ini看起来像这样:
[xdebug]
;zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
Run Code Online (Sandbox Code Playgroud) 我的php版本是PHP版本5.3.6.
php.ini中的Xdebug设置:
[Xdebug]
zend_extension_ts="D:\php\ext\php_xdebug-2.1.2.dll"
xdebug.remote_enable=1
;IP
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.auto_trace = On
xdebug.show_exception_trace = On
xdebug.remote_autostart = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On
Run Code Online (Sandbox Code Playgroud)
我已经安装了PHP 5.3 VC6(32位)/ PHP 5.3 VC9(32位).他们都失败了.
当在cmd上键入"php --ini"时.表明:

如何从PHPUnit的代码覆盖范围中排除基目录?
这是我的phpunit.xml
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="include.php"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false">
<testsuite name="MyProject">
<directory>classes/*</directory>
</testsuite>
<logging>
<log type="coverage-html" target="../reports/coverage" charset="UTF-8" yui="true" highlight="false" lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-xml" target="../reports/coverage.xml"/>
<log type="test-xml" target="../reports/logfile.xml" logIncompleteSkipped="false"/>
<log type="testdox-html" target="../reports/testdox.html"/>
<log type="testdox-text" target="../reports/testdox.txt"/>
</logging>
</phpunit>
Run Code Online (Sandbox Code Playgroud)
输出时,它包括所有基本目录,如:
c:\work\some\path\MyProject
Run Code Online (Sandbox Code Playgroud)
如何使其仅包括...\MyProject\*代码覆盖率输出?
我正在尝试在以下场景中使用XDebug
192.168.1.240192.168.1.240 mysite\\HostIP\html\mysite,具有R/W权限我在计算机上创建了一个Netbeans项目,指向\\HostIP\html\mysite.在项目运行配置中,我有以下内容:
http://mysite/在高级运行配置中:
我在CentOS VM上的php.ini中有以下内容
;extension=xdebug.so
zend_extension="/usr/lib64/php/modules/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_log="/var/log/xdebug.log"
;xdebug.remote_host=192.168.1.31
xdebug.remote_connect_back=1
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
Run Code Online (Sandbox Code Playgroud)
注意:我尝试了配置extension=xdebug.so并尝试xdebug.remote_connect_back=1使用uncomment xdebug.remote_host=192.168.1.31进行评论,这是我的计算机IP地址.
所以基本上我有像这个图像的所有配置

但还是不行!运行后,调试器将打开此URL
http://mysite/index.php?XDEBUG_SESSION_START=netbeans-xdebug
Run Code Online (Sandbox Code Playgroud)
并且没有任何事情会发生只是netbeans上市等待Xdebug连接
您好我已经安装了xampp,将php.ini更改为:
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.3-5.3-vc9.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\xampp\tmp"
Run Code Online (Sandbox Code Playgroud)
所以我创建了一个php文件:
<?php
phpinfo();
?>
Run Code Online (Sandbox Code Playgroud)
复制粘贴内容并粘贴到xdebug向导中并获得此输出:
Tailored Installation Instructions
Summary
Xdebug installed: no
Server API: Apache 2.4 Handler Apache Lounge
Windows: yes - Compiler: MS VC9 - Architecture: x86
Zend Server: no
PHP Version: 5.4.7
Zend API nr: 220100525
PHP API nr: 20100525
Debug Build: no
Thread Safe Build: …Run Code Online (Sandbox Code Playgroud) 我正在使用作曲家,当我做更新.如果在我的php.ini文件中加载xdebug,则需要花费大量时间.
我怎样才能为cli禁用xdebug.因此作曲家不会花太多时间.但我会启用xdebug吗?
Netbeans不会连接到xdebug.我试过以下帖子的建议:
netbeans显示"等待连接(netbeans-xdebug)"
但它并没有解决我的问题.
似乎Netbeans连接到xdebug,因为在等待连接时,对Web服务器[Apache2]的所有请求都被阻止.端口[9001]似乎正在使用中:
roxy@Pixy011 ~ $ sudo nmap -sS -O 127.0.0.1
Starting Nmap 6.00 ( http://nmap.org ) at 2013-11-28 20:48 EST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000029s latency).
Not shown: 990 closed ports
PORT STATE SERVICE
22/tcp open ssh
139/tcp open netbios-ssn
443/tcp open https
445/tcp open microsoft-ds
631/tcp open ipp
902/tcp open iss-realsecure
3306/tcp open mysql
8080/tcp open http-proxy
8081/tcp open blackice-icecap
9001/tcp open tor-orport <---- Opened by java
Run Code Online (Sandbox Code Playgroud)
xdebug.ini:[我已经确认它是在phpinfo()中加载的]
zend_extension=/usr/lib/php5/20100525/xdebug.so
xdebug.remote_autostart=1
xdebug.remote_enable=1 …Run Code Online (Sandbox Code Playgroud) 以太我的状态从来没有过来或我不知道如何谷歌它!我的开发环境更新到ubuntu 14.04,phpStorm 2016.1(仍处于试用版),java版"1.7.0_95".所有设置都很好,我可以调试,但在调试启动后(一分钟或更短的时间),所有调试会话终止或从第一个断点重新启动.我也得到了很多"调试会话没有被暂停就完成"的通知而没有做任何调试请求(参见附件中的plz).
请让我知道要检查什么或可能是什么原因.提前致谢.
[xdebug]
zend_extension="/usr/lib/php5/20121212/xdebug.so"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
Run Code Online (Sandbox Code Playgroud)
开发框架是magento 1.14.2 EE
我使用带有PHP Debug扩展的Visual Studio Code来调试Laravel项目。但是有些断点被忽略了,我不知道为什么。我坚持并非所有断点都被忽略的事实。例如,方法声明处的所有断点都将被忽略,而变量声明处的所有断点将被命中。
我的Xdebug部分php.ini:
xdebug.profiler_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back=1
xdebug.remote_enable = 1
xdebug.remote_port = 9000
Run Code Online (Sandbox Code Playgroud)
这是我的launch.json:
xdebug.profiler_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back=1
xdebug.remote_enable = 1
xdebug.remote_port = 9000
Run Code Online (Sandbox Code Playgroud)
我试过的
示例:“•”表示行断点。下面的代码示例中的所有断点都将被忽略。
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9001,
"log": true …Run Code Online (Sandbox Code Playgroud) php ×10
xdebug ×10
netbeans ×4
composer-php ×1
laravel ×1
phpstorm ×1
phpunit ×1
unit-testing ×1
virtualbox ×1
windows ×1
xampp ×1