2016-11-14 93 views
1

我在php.ini中配置了Xdebug,我在phpinfo()中看到它。 而我在解釋器中看到Xdebug版本我在Windows 10中安裝了XAMPP v3.2.2。 我附上了一些圖片來解釋我擁有的東西。PhpStorm 2016.2.2在php和PhpStorm中配置的xdebug,但斷點不會停止

請幫我一下,我該如何讓PhpStorm在斷點處停下來?

我的php.ini


[了XDebug]

zend_extension="C:\xampp\php\ext\php_xdebug.dll" 
xdebug.remote_enable=1 
xdebug.remote_host="127.0.0.1" 
xdebug.remote_port=9000 
xdebug.remote_handler="dbgp" 
xdebug.remote_autostart=1 
xdebug.profiler_enable=1 
;xdebug.remote_connect_back=1 

口譯

Interpreters

語言&框架> PHP>調試

Languages & Frameworks>PHP>Debug

+0

不要在Windows上使用xdebug 2.5 RC--它現在不起作用。 **現在使用xdebug stable 2.4.1 ** - 就像這樣簡單。 http://stackoverflow.com/a/40803303/783119 – LazyOne

+0

謝謝你很多它爲我工作 –

回答

0

嘗試將xdebug.remote_host="localhost:8081"更改爲xdebug.remote_host=localhost。您已經在xdebug.remote_port中指定了端口,因此主機設置必須只包含主機名。

另外檢查端口9000是否真的由PHPStorm持有。可能與PHP FPM有衝突,因爲它默認使用相同的端口。

+0

我試過......但它仍然不停止在斷點... –