简体   繁体   English

什么PHP,Xdebug和Eclipse配置适用于Windows 7 64位?

[英]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. 我已经捣乱了几天,试图找到合适的组合,让我在Eclipse中调试断点和变量查看,而不会崩溃Apache。

  • PHP 5.3? PHP 5.3? PHP 5.2? PHP 5.2?
  • Eclipse Helios? Eclipse Helios? Eclipse Galileo? Eclipse Galileo? One or the other with certain versions of xdebug or php? 一个或另一个与某些版本的xdebug或PHP? Or do I need to use NetBeans or something else? 或者我是否需要使用NetBeans或其他东西?
  • Is my 64 bit OS the problem? 我的64位操作系统是问题吗? Do need specific 64bit versions of PHP, Eclipse or Xdebug to work on Windows 7 64? 是否需要特定的64位版本的PHP,Eclipse或Xdebug才能在Windows 7 64上运行?
  • Any special xdebug config options and tricks that I need in php.ini? 我需要在php.ini中使用任何特殊的xdebug配置选项和技巧吗? Like turning off xdebug.profiler_enable or not using quotes around my zend_extension path to the xdebug dll? 就像关闭xdebug.profiler_enable或不使用我的zend_extension路径周围的引号到xdebug dll?
  • A Vhosts issue? 一个Vhosts问题?
  • Scrap the whole thing and go back to Win XP or Ubuntu? 废弃整个东西,回到Win XP或Ubuntu?

Here's what I've already been reading: 这是我一直在阅读的内容:

Basically what would be great is if folks could post their working (ie debugging with breakpoints and local variable viewing in Eclipse) Win7 64bit configurations, including: 基本上,如果人们可以发布他们的工作(即使用Eclipse中的断点和局部变量查看调试)Win7 64位配置,包括:

  • PHP version (5.3.1, 5.2.11, etc) PHP版本(5.3.1,5.2.11等)
  • Xdebug dll (2.1.0-5.3-vc6, etc) Xdebug dll(2.1.0-5.3-vc6等)
  • Xdebug php.ini config (zend_extension = "C:\\xampp\\php\\ext\\php_xdebug.dll", etc) Xdebug php.ini config(zend_extension =“C:\\ xampp \\ php \\ ext \\ php_xdebug.dll”等)
  • Apache version (2.2.14, etc) Apache版本(2.2.14等)
  • Anything else important? 还有什么重要的吗? The "secret ingredient"? “秘密成分”?

Thanks! 谢谢! I miss my debugger since I got a new laptop with Win 7 :( 我想念我的调试器,因为我有一台Win 7的新笔记本电脑:(

Note: Moved to SuperUser 注意:已移至超级用户
https://superuser.com/questions/231818/what-php-xdebug-and-eclipse-configurations-work-on-windows-7-64-bit https://superuser.com/questions/231818/what-php-xdebug-and-eclipse-configurations-work-on-windows-7-64-bit

So, here is what I am using now on my Windows 7 64 laptop, which seems to be working: 所以,这就是我现在在我的Windows 7 64笔记本电脑上使用的,这似乎正在起作用:

  1. Eclipse Helios Service Release 2 (3.6.2) Eclipse Helios Service Release 2(3.6.2)
  2. Apache 2.2.17 Apache 2.2.17
  3. PHP 5.3.4 PHP 5.3.4
  4. XDebug 2.1.0-5.3 (VC9 I think) XDebug 2.1.0-5.3(VC9我认为)

I used the WAMP Server 2.1d 64bit installer . 我使用了WAMP Server 2.1d 64位安装程序 WAMP is waaaay better than XAMPP, like, I can't even believe. WAMP比XAMPP更好,我甚至不敢相信。 My life is good again. 我的生活又好了。

I ran in to a couple of problems still, namely the OpenSSL files included with Apache didn't work. 我还遇到了一些问题,即Apache附带的OpenSSL文件无效。 But I just downloaded the latest files from the OpenSLL and overwrote the files WAMP came with, and now it works great. 但我刚从OpenSLL下载了最新的文件,并覆盖了WAMP附带的文件,现在效果很好。

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. 我还必须在我喜欢的PHPMyAdmin上启用一些额外功能,并且必须将INI参数添加到mySql服务以使用MySql Administrtaor程序,但总体来说它工作得很顺利。 Very stable now. 现在非常稳定。

Anyway, I can set breakpoints and inspect local variables now! 无论如何,我现在可以设置断点并检查局部变量! And still use my favorite Eclipse IDE! 并仍然使用我最喜欢的Eclipse IDE! Thanks for everyone's suggestions, please feel free to continue to post working configurations to help everyone else out. 感谢大家的建议,请随时继续发布工作配置,以帮助其他人。

I had the same problem. 我有同样的问题。
I had wamp 2.2 installed with the following: 我安装了wamp 2.2以下内容:
the 64 bit thread safe version of Apache built with vc-9 \\ 使用vc-9构建的64位线程安全版Apache
Apache 2.4.2 Apache 2.4.2
Php 5.4.3 PHP 5.4.3
MySQL 5.5.24 MySQL 5.5.24
php_xdebug-2.2.0-5.4-vc9-x86_64.dll - this version of XDebug did not work, but after php_xdebug-2.2.0-5.4-vc9-x86_64.dll - 这个版本的XDebug不起作用,但之后
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. php_xdebug-2.2.3-5.4-vc9-x86_64.dll - 最新的线程安全版本,我的eclipse调试器工作正常。

Windows 7 64bit. Windows 7 64位。 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. 如果我记得的话,我在Netbeans 6.9.1和7.0 beta,PHP 5.2.6,Apache 2.2.3上使用X-debug 2.1.0,但这应该没关系。

php.ini: php.ini中:

zend_extension_ts="C:\work\xampp\php\ext\php_xdebug-2.1.0-5.2-vc6.dll"
xdebug.remote_enable=On
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp

In Netbeans menu Tools --> Options --> PHP --> General: make sure the PHP interpreter file points correctly, and the Xdebug port is 9000. 在Netbeans菜单中的工具 - >选项 - > PHP - >常规:确保PHP解释器文件正确指向,并且Xdebug端口为9000。

Finally, for web site debugging I use Easy XDebug for Firefox, which adds the Xdebug session parameter in the requests. 最后,对于网站调试,我使用Easy XDebug for Firefox,它在请求中添加了Xdebug会话参数。

I am currently using Windows 7 64bit and I am currently using the EasyPHP Stack to develop my PHP project. 我目前正在使用Windows 7 64位,目前我正在使用EasyPHP Stack来开发我的PHP项目。 As far as I am aware you can easily use 32bit without any problems at all. 据我所知,您可以轻松使用32位而不会出现任何问题。 The EasyPHP stack includes XDebug so it should be relatively simple for you to set up. EasyPHP堆栈包含XDebug,因此设置起来应该相对简单。

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. Netbeans可以在32位或64位下载,但是使用64位版本时会遇到问题,我一直在使用32位Netbeans而没有任何问题。

Hope this will be helpful! 希望这会有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM