Eclipse、XAMPP、xDebug - 等待 XDebug 会话 - 保持在 57% [英] Eclipse, XAMPP, xDebug - waiting for XDebug session - stays in 57%

查看:27
本文介绍了Eclipse、XAMPP、xDebug - 等待 XDebug 会话 - 保持在 57%的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我开始调试时,进程停留在 57% 并说等待 XDebug 会话".

When I start debugging the process stays there at 57% and says "waiting for XDebug session".

这是 StackOverFlow 上的重复帖子,但我尝试了所有的答案,没有任何效果.

This is a duplicate post on StackOverFlow, but I tried all the answers, nothing worked.

直到两天前它都运行良好.我不知道出了什么问题.

It was working fine until before two days. I don't know what went wrong.

推荐答案

一直使用 Eclipse 在 Firefox 中启动 xdebug 会话,突然 23/4/2013 它不会使用 Firefox 启动 xdebug.它给了我 57% 的启动和挂起问题.

Having used Eclipse to launch xdebug sessions in Firefox for ever now, all of a sudden 23/4/2013 it would not launch xdebug using Firefox. It gave me the launch 57% and hang problem.

很高兴在 IE/Chrome/Safari/Opera 而不是 Firefox 中启动 xdebug 会话.

It was quite happy to launch xdebug sessions in IE/Chrome/Safari/Opera but not Firefox.

这次我唯一改变的是我将我的 java 运行时从以前的版本升级到 1.7.0_21(不记得是哪个,但我确实跳过了多个版本,所以它可能是 1.7.0_19)

The only thing I changed around this time was I upgrades my java runtime to 1.7.0_21 from a previous version ( cannot remember which but I did jump more than one release so it was probably 1.7.0_19 )

我查看了项目日志文件,检查您的项目工作区文件夹中是否有一个名为 .metadata 的子文件夹,其中应该有一个 .log 文件,每个项目都有一个,因此请确保您查看的是正确的一个.

I took a look at the project log file, Check your projects workspace folder for a subfolder called .metadata where there should be a .log file, there is one of these for each project so be sure you are looking at the correct one.

这是我的:

!SESSION 2013-04-23 11:06:21.238----------------------------------------------- eclipse.buildId=M20130204-1200 java.version=1.7.0_21java.vendor=Oracle Corporation BootLoader 常量:OS=win32,ARCH=x86, WS=win32, NL=en_GB 命令行参数:-os win32 -wswin32 -arch x86

!SESSION 2013-04-23 11:06:21.238 ----------------------------------------------- eclipse.buildId=M20130204-1200 java.version=1.7.0_21 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui.browser 4 0 2013-04-23 11:07:32.584 !MESSAGE启动 C:\Program Files\Mozilla Firefox\firefox.exe 失败.!STACK 0 java.io.IOException: 无法运行程序 "C:\Program":CreateProcess error=2, 系统找不到指定的文件java.lang.ProcessBuilder.start(Unknown Source) atjava.lang.Runtime.exec(Unknown Source) atjava.lang.Runtime.exec(Unknown Source) atjava.lang.Runtime.exec(Unknown Source) atorg.eclipse.ui.internal.browser.browsers.MozillaBrowser$BrowserThread.openBrowser(MozillaBrowser.java:94)在org.eclipse.ui.internal.browser.browsers.MozillaBrowser$BrowserThread.run(MozillaBrowser.java:165)引起:java.io.IOException: CreateProcess error=2,系统找不到在 java.lang.ProcessImpl.create(Native方法)在 java.lang.ProcessImpl.(Unknown Source) atjava.lang.ProcessImpl.start(Unknown Source) ... 6 更多

!ENTRY org.eclipse.ui.browser 4 0 2013-04-23 11:07:32.584 !MESSAGE Launching C:\Program Files\Mozilla Firefox\firefox.exe has failed. !STACK 0 java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at org.eclipse.ui.internal.browser.browsers.MozillaBrowser$BrowserThread.openBrowser(MozillaBrowser.java:94) at org.eclipse.ui.internal.browser.browsers.MozillaBrowser$BrowserThread.run(MozillaBrowser.java:165) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 6 more

因为我看到了这条线java.io.IOException: 无法运行程序 "C:\Program": CreateProcess error=2,

Because I saw this line java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2,

这让我觉得由于某种原因java无法再处理带有空格的文件夹名称(很奇怪),所以我更改了eclipse首选项并使用了8.3命名约定C:\PROGRA~1\MOZILL~1\firefox.exe

It made me thinks that for some reason java could no longer cope with folder names with spaces in them (very strange), so I changed the eclipse preferences and used the 8.3 naming convension C:\PROGRA~1\MOZILL~1\firefox.exe

现在它再次启动 xdebug 会话!!

Now it launches the xdebug session again!!

这很奇怪,因为它似乎没有问题

This is very strange as it does not seem to have problems with

C:\Program Files\Opera\opera.exe OR
C:\Program Files\Safari\Safari.exe OR
C:\Program Files\Internet Explorer\iexplore.exe

所以我能想到的是,由于某些晦涩的原因,它不喜欢其中包含空格的 2 个文件夹名称,因为它不会从 C:\Program Files\Mozilla Firefox\firefox.exe 启动 firefox我假设它从名为 address 的类似文件夹启动 IE,因为它是该系统上的默认浏览器.

So all I can think of is that it does not like 2 folder names with spaces in them for some obsqure reason, because it wont launch firefox from C:\Program Files\Mozilla Firefox\firefox.exe I assume it launches IE from a similiar folder named address as it is the default browser on this system.

无论如何,我的解决方案是更改 eclipse 首选项 ->General -> Web Browser -> Firefox使用 8.3 DOS 目录命名约定.

Anyhow, the solution for me was to change the eclipse preferences ->General -> Web Browser -> Firefox to use the 8.3 DOS directory naming convension.

希望能帮到你

这篇关于Eclipse、XAMPP、xDebug - 等待 XDebug 会话 - 保持在 57%的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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