gpt4 book ai didi

sublimetext3 - Xdebug 调试不适用于 Sublime Text 3

转载 作者:行者123 更新时间:2023-12-04 03:16:32 27 4
gpt4 key购买 nike

我遇到了 Xdebug 的问题不适用于 Sublime Text 3.我用过的服务器是wampserver。我已经使用了我应该安装的版本的 Xdebug 向导。这是图片:

Xdebug installation instruction

这是 Xdebug 的 phpinfo:

Here's the phpinfo

这里是 php.ini 中 Xdebug 的 Xdebug 扩展:

    ; XDEBUG Extension
[xdebug]
zend_extension ="P:\wamp64\bin\php\php7.0.4\ext\php_xdebug-2.4.1-7.0-vc14-x86_64.dll"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.profiler_output_dir ="P:/wamp64/tmp"
xdebug.show_local_vars=0

我在 Sublime Text 中试过 Xdebug sublime 设置,比如

Enter image description here

当我尝试测试我的 PHP 代码时,它仍然没有执行任何操作。

我关注网站https://www.sitepoint.com/debugging-xdebug-sublime-text-3/用于配置 Xdebug,但它仍然根本不起作用。

最佳答案

在 sublime 设置中,您需要一个真实的 url(您已将文件夹路径放在那里)。

你需要这样的东西:"url": "dev.myproject.com"


您可以直接从服务器的主页创建您的虚拟主机(至少在 WampServer 中)(本地主机 - 如果您没有覆盖它 - 应该给您主要配置)enter image description here


在 php.ini 中,除了其他 xdebug 属性外,我发现我需要激活以下内容才能使一切正常工作:

xdebug.remote_enable = On
xdebug.profiler_enable = On
xdebug.profiler_enable_trigger = On

如果您需要更多信息,请告诉我

关于sublimetext3 - Xdebug 调试不适用于 Sublime Text 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40472505/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com