XAMPP PhpStorm XDebug不会在断点上停止 [英] XAMPP PhpStorm XDebug not stopping on breakpoints

查看:144
本文介绍了XAMPP PhpStorm XDebug不会在断点上停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台装有XAMPP(Apache 2.4.4-Win32 PHP 5.4.16)和PHPStorm 6.0.3的Windows 7计算机.我一生中无法在该计算机上使用XDebug!我看一下我的PHPInfo页面:

I have a Windows 7 machine with XAMPP(Apache 2.4.4 - Win32 PHP 5.4.16) and PHPStorm 6.0.3 For the life of me I cannot get XDebug working on this machine!! I look at my PHPInfo page:

这告诉我,我需要下载XDebug"PHP 5.4 VC9 TS(64位)",然后下载并复制以产生:C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9-x86_64.dll我的PHP.ini具有:

This tells me that I need to download XDebug "PHP 5.4 VC9 TS (64 bit)" I download and copy to produce: C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9-x86_64.dll My PHP.ini has:

[XDebug]
zend_extension_ts = "C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9-x86_64.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.remote_port = 9000
xdebug.trace_output_dir = "C:\xampp\tmp"

我重新启动XAMPP,但是PHPInfo页面中仍然没有XDebug吗?

I re-start XAMPP but the PHPInfo page still does not have XDebug in it?

推荐答案

回答我自己的问题不是我想要做的,但是到此为止.我发现我在32位模式下使用XAMPP-我添加了echo PHP_INT_SIZE;回到我的phpinfo.php页面的顶部,它返回4(32位),我下载了"PHP 5.4 VC9 TS(32位)",但使我的PHP.ini读为:

Answering my own question is not what I wanted to do but here we go. I figured out that I was using XAMPP in 32bit mode - I added echo PHP_INT_SIZE; to the top of my phpinfo.php page and it returned 4 (32 bit) I downloaded "PHP 5.4 VC9 TS (32 bit)" but made my PHP.ini read:

zend_extension ="C:\ xampp \ php \ ext \ php_xdebug-2.2.3-5.4-vc9.dll"-从zend_extension_ts中删除_ts

zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll" - removing the _ts from zend_extension_ts

这篇关于XAMPP PhpStorm XDebug不会在断点上停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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