2016-11-07 120 views
2

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

Xdebug installation instruction

下面是Xdebug的的的phpinfo:

Here's the phpinfo

这里就是Xdebug扩展是Xdebug的在php.ini:

; 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 

我已经在崇高文字中尝试过Xdebug崇高设置,如

Enter image description here

当我尝试测试我的PHP代码时,它仍然没有做任何事情。

我按照网站https://www.sitepoint.com/debugging-xdebug-sublime-text-3/来配置Xdebug,但它仍然没有工作。

+0

相关:http://stackoverflow.com/questions/40173485/xdebug-does-not-break-on-breakpoints-from-atoms- PHP调试包 –

回答

0

在崇高的设置你需要一个真正的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 

让我知道如果你需要更多的信息