哪些 PHP、Xdebug 和 Eclipse 配置可在 Windows 7 64 位上运行?
我已经摸索了好几天了,试图找到正确的组合,让我可以在 Eclipse 中使用断点和变量查看进行调试,而不会导致 Apache 崩溃。
- PHP 5.3? PHP 5.2?
- 日食赫利俄斯?日食伽利略?使用特定版本的 xdebug 或 php 之一或另一个?或者我需要使用 NetBeans 或其他东西吗?
- 是我的 64 位操作系统有问题吗?是否需要特定 64 位版本的 PHP、Eclipse 或 Xdebug 才能在 Windows 7 64 上运行?
- php.ini 中需要什么特殊的 xdebug 配置选项和技巧吗?比如关闭 xdebug.profiler_enable 或不在 xdebug dll 的 zend_extension 路径周围使用引号?
- 虚拟主机问题?
- 放弃整个事情并返回到 Win XP 或 Ubuntu?
这是我已经读过的内容:
- 所以 eclipse 和 xdebug 走进一家酒吧,然后我的 apache 服务器死掉了
- 为什么在我尝试过的每个 XAMPP 安装上 xdebug 都会使 apache 崩溃?
- http://bugs.xdebug.org/view.php?id=459
- https://bugs.eclipse.org/bugs/show_bug.cgi?id=312951#c8
- xdebug for PHP 5.2 on Windows 7 64bit
- 等等... SO、xdebug bug tracker、eclipse bugzilla 等
那就太好了
- 基本上,如果人们可以发布他们的工作(即在 Eclipse 中使用断点和本地变量查看进行调试)Win7 64 位配置,包括: PHP 版本(5.3.1、5.2), .11 等)
- Xdebug dll(2.1.0-5.3-vc6 等)
- Xdebug php.ini 配置(zend_extension = "C:\xampp\php\ext\php_xdebug.dll" 等)
- Apache 版本(2.2.14、等等)
- 还有什么重要的事情吗? “秘密成分”?
谢谢!自从我有了一台装有 Win 7 的新笔记本电脑后,我想念我的调试器:(
注意:已移至超级用户
https://superuser.com/问题/231818/what-php-xdebug-and-eclipse-configurations-work-on-windows-7-64-bit
I have been mucking around for days, trying to find the right combination that lets me debug with breakpoints and variable viewing, in Eclipse, without crashing Apache.
- PHP 5.3? PHP 5.2?
- Eclipse Helios? Eclipse Galileo? One or the other with certain versions of xdebug or php? Or do I need to use NetBeans or something else?
- Is my 64 bit OS the problem? Do need specific 64bit versions of PHP, Eclipse or Xdebug to work on Windows 7 64?
- Any special xdebug config options and tricks that I need in php.ini? Like turning off xdebug.profiler_enable or not using quotes around my zend_extension path to the xdebug dll?
- A Vhosts issue?
- Scrap the whole thing and go back to Win XP or Ubuntu?
Here's what I've already been reading:
- So eclipse and xdebug walk into a bar, and then my apache server dies
- Why does xdebug crash apache on every XAMPP install I've tried?
- http://bugs.xdebug.org/view.php?id=459
- https://bugs.eclipse.org/bugs/show_bug.cgi?id=312951#c8
- xdebug for PHP 5.2 on Windows 7 64bit
- and so and so on... SO, xdebug bug tracker, eclipse bugzilla, etc, etc
Basically what would be great is if folks could post their working (i.e. debugging with breakpoints and local variable viewing in Eclipse) Win7 64bit configurations, including:
- PHP version (5.3.1, 5.2.11, etc)
- Xdebug dll (2.1.0-5.3-vc6, etc)
- Xdebug php.ini config (zend_extension = "C:\xampp\php\ext\php_xdebug.dll", etc)
- Apache version (2.2.14, etc)
- Anything else important? The "secret ingredient"?
Thanks! I miss my debugger since I got a new laptop with Win 7 :(
Note: Moved to SuperUser
https://superuser.com/questions/231818/what-php-xdebug-and-eclipse-configurations-work-on-windows-7-64-bit
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
所以,这是我现在在 Windows 7 64 笔记本电脑上使用的,它似乎可以工作:
我使用了WAMP Server 2.1d 64 位安装程序。 WAMP 比 XAMPP 好得多,我什至不敢相信。我的生活又美好了。
我仍然遇到了一些问题,即 Apache 附带的 OpenSSL 文件无法工作。但我刚刚从 OpenSLL 下载了最新的文件并覆盖了 WAMP 附带的文件,现在效果很好。
我还必须在 PHPMyAdmin 上启用一些我喜欢的附加功能,并且必须将 INI 参数添加到 mySql 服务才能使用 MySql Administrtaor 程序,但总体来说它工作得很好。现在很稳定。
不管怎样,我现在可以设置断点并检查局部变量了!并且仍然使用我最喜欢的 Eclipse IDE!感谢大家的建议,请随时发布工作配置以帮助其他人。
So, here is what I am using now on my Windows 7 64 laptop, which seems to be working:
I used the WAMP Server 2.1d 64bit installer. WAMP is waaaay better than XAMPP, like, I can't even believe. My life is good again.
I ran in to a couple of problems still, namely the OpenSSL files included with Apache didn't work. But I just downloaded the latest files from the OpenSLL and overwrote the files WAMP came with, and now it works great.
I also had to enable some of the bonus features on PHPMyAdmin I like, and had to add the INI parameter to the mySql service to use the MySql Administrtaor program, but overall it worked slick. Very stable now.
Anyway, I can set breakpoints and inspect local variables now! And still use my favorite Eclipse IDE! Thanks for everyone's suggestions, please feel free to continue to post working configurations to help everyone else out.
Windows 7 64 位。如果我记得的话,我在 Netbeans 6.9.1 和 7.0 beta、PHP 5.2.6、Apache 2.2.3 上使用 X-debug 2.1.0,但这应该不重要。
php.ini:
在 Netbeans 菜单“工具”中 -->选项 --> PHP -->一般:确保 PHP 解释器文件指向正确,并且 Xdebug 端口为 9000。
最后,对于网站调试,我使用 Easy XDebug for Firefox,它在请求中添加 Xdebug 会话参数。
Windows 7 64bit. I use X-debug 2.1.0 on Netbeans 6.9.1 and 7.0 beta, PHP 5.2.6, Apache 2.2.3 if I recall, but it shouldn't matter.
php.ini:
In Netbeans menu Tools --> Options --> PHP --> General: make sure the PHP interpreter file points correctly, and the Xdebug port is 9000.
Finally, for web site debugging I use Easy XDebug for Firefox, which adds the Xdebug session parameter in the requests.
我目前使用的是 Windows 7 64 位,并且正在使用 EasyPHP 堆栈来开发我的 PHP 项目。据我所知,您可以轻松使用 32 位,没有任何问题。 EasyPHP 堆栈包含 XDebug,因此设置起来应该相对简单。
Netbeans 可以下载 32 位或 64 位版本,但是使用 64 位版本会出现问题,我一直在使用32位Netbeans没有任何问题。
希望这会有所帮助!
I am currently using Windows 7 64bit and I am currently using the EasyPHP Stack to develop my PHP project. As far as I am aware you can easily use 32bit without any problems at all. The EasyPHP stack includes XDebug so it should be relatively simple for you to set up.
Netbeans can be downloaded in either 32bit or 64bit however there are meant to be problems with using the 64bit version and I have been using the 32bit Netbeans without any problems.
Hope this will be helpful!
我也有同样的问题。
我安装了 wamp 2.2,其中包含以下内容:
用 vc-9 构建的 64 位线程安全版本的 Apache \
阿帕奇2.4.2
PHP 5.4.3
MySQL 5.5.24
php_xdebug-2.2.0-5.4-vc9-x86_64.dll - 此版本的 XDebug 无法工作,但下载并安装后:
php_xdebug-2.2.3-5.4-vc9-x86_64.dll - 最新的线程安全版本,我的 eclipse 调试器工作正常。
I had the same problem.
I had wamp 2.2 installed with the following:
the 64 bit thread safe version of Apache built with vc-9 \
Apache 2.4.2
Php 5.4.3
MySQL 5.5.24
php_xdebug-2.2.0-5.4-vc9-x86_64.dll - this version of XDebug did not work, but after
downloading and installing:
php_xdebug-2.2.3-5.4-vc9-x86_64.dll - the most recent threadsafe version, my eclipse debugger is working properly.