首页 文章

XAMPP,Xdebug和phpStorm

提问于
浏览
1

我有一段时间让xdebug在xampp上工作 . 我试图能够使用phpStorm在浏览器中调试php .

我在Windows 7(64位版)上 .

我下载了相应版本的Xdebug(我认为) . PHP 5.4 VC9 TS(64位)

把它放在php.ini(我的phpinfo()中的php.ini)

[XDebug]
zend_extension_ts = "\xampp\php\ext\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=”dbgp”
xdebug.trace_output_dir = "\xampp\tmp"

我之前编辑过php.ini来将默认的htdocs更改为另一个位置(我不确定这是否会影响xdebug)

另外,我看到许多这类问题的答案是使用xdebug向导 . 那对我不起作用 - 不告诉我出于某种原因要下载哪个二进制文件 .

1 回答

  • 0

    谢谢@LazyOne

    确保我有32位版本(per this thread) .

    确保xdebug.remote_enable = 1

    以下是有效的:

    [XDebug]
    zend_extension = "C:\Program Files (x86)\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll"
    xdebug.profiler_append = 0
    xdebug.profiler_enable = 1
    xdebug.profiler_enable_trigger = 0
    xdebug.profiler_output_dir = "C:\Program Files (x86)\xampp\tmp"
    xdebug.profiler_output_name = "cachegrind.out.%t-%s"
    xdebug.remote_enable = 1
    xdebug.remote_handler = "dbgp"
    xdebug.remote_host = "127.0.0.1"
    xdebug.remote_port = 9000
    xdebug.trace_output_dir = "C:\Program Files (x86)\xampp\tmp"
    

相关问题