2016-11-07 124 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 

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