XDebug 在 PHPStorm 中停止工作 [英] XDebug stopped working in PHPStorm

查看:52
本文介绍了XDebug 在 PHPStorm 中停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个小时以来,我一直在反对这个.

I've been beating my head against this for hours.

在几周内没有使用 PHPStorm 后,我回来在它中做一些工作,但由于某种原因,调试不再起作用.以前可以用,但现在不行了,我不知道发生了什么.

I've come back to do some work in PHPStorm after not having used it in a couple of weeks, and for some reason the debug doesn't work any more. It used to work, but now it doesn't and I have no idea what is going on.

我在 Windows 上运行,使用 IIS,PHP 版本 5.3.8.XDebug 已安装,我已按照通常的说明在 PHP.ini 中设置了配置.

I'm running on Windows, using IIS, PHP version 5.3.8. The XDebug is installed, and I've set the configuration in PHP.ini as per the usual instructions.

当我运行 phpinfo() 时,一切看起来都很正常(即 XDebug 在那里).

When I run phpinfo() everything looks normal (ie. XDebug is there).

我重新检查了各种设置,下载了比我使用的 XDebug 版本稍新的 XDebug 版本 (Xdebug v2.2.1),但似乎没有任何反应.

I've rechecked various settings, downloaded a slightly newer version of XDebug than I was using (Xdebug v2.2.1), but nothing seems to kick it into life.

有人可以给我一些关于我接下来可以看什么的线索吗?

Can someone please give me some clues as to what I can look at next?

更新:

我已经花了几个小时来反对这一点,但似乎并没有进一步发展.根据 phpinfo() 安装并加载了 XDebug.我打开了日志记录,但除了 XDebug 确实正在连接之外,它并没有真正告诉我什么......

I've spent a few more hours beating my head against this, and don't seem to have gotten much further. XDebug is installed and loaded, according to phpinfo(). I turned on logging, but it doesn't really tell me much except that XDebug is indeed connecting...

Log opened at 2013-02-17 04:13:07
I: Connecting to configured address/port: localhost:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///C:/web/dbg/index.php" language="PHP" protocol_version="1.0" appid="6912" idekey="PHPSTORM"><engine version="2.2.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2012 by Derick Rethans]]></copyright></init>

-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>

Log closed at 2013-02-17 04:13:07

所以似乎问题出在 PHPStorm 方面,但我看不到在哪里.我尝试创建一个非常简单的项目,但也无法调试.

So it seems that the problem is on the PHPStorm side, but I cannot see where. I tried creating a very simple project, but could not get that to debug either.

推荐答案

当您花费数小时在某事上挣扎,然后在绝望中尝试一些简单的事情并且它奏效时,您不讨厌它吗?

Don't you hate it when you spend hours wrestling with something, then in desperation try something simple, and it works?

我决定尝试一个不同的端口,9001 而不是默认的 9000,它奏效了!

I decided to try a different port, 9001 instead of the default 9000, and it WORKED!

我现在意识到我最近安装了 Twonky(用于将视频流式传输到我的电视),当我检查设置时,它是...端口 9000.

I now realise that I recently installed Twonky (for video streaming to my TV), and when I checked the settings, there it was... port 9000.

这篇关于XDebug 在 PHPStorm 中停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆