[英]How to use Xdebug with Laravel on Nginx with PHPStorm on Mac?
[英]How to use Xdebug in PhpStorm
我在我的代碼中使用調試器時遇到了麻煩,這是我第一次使用調試器,我不知道我是以正確的方式做到了,但它對我不起作用。 它總是在變量部分顯示此消息...
使用ide鍵'13001'等待傳入連接
我跟着這一步......
1.我的xdebug的php.ini設置
[Xdebug]
zend_extension="D:\XAMMPI\php\ext\php_xdebug-2.4.0-5.6-vc11.dll"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=80 //i also try the default port (9000) here but it still not working
xdebug.idekey=PHPSTORM
2.我為Debugger創建配置設置。
3.我將斷點應用於代碼進行測試
我正在使用PhpStorm 2016.1
任何幫助將不勝感激
更新 - 1
只需使用我的php.ini設置xdebug
[XDebug]
zend_extension="D:\XAMMPI\php\ext\php_xdebug-2.4.0-5.6-vc11.dll" ; copied this link based on your config.
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=10000
xdebug.remote_autostart=1
xdebug.idekey=
然后為chrome 安裝xDebug helper :
https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc?hl=en
之后,您應該創建PHP遠程調試而不是PHP Web應用程序
如下圖所示。
在你的設置上。 可以使用Ctrl+Alt S
訪問。 搜索調試端口,並將其更改為10000。
之后,您應該在chrome中導航到您的擴展程序並激活xDebug。
就是這樣。 快樂調試:)
Waiting for incoming connection with ide key '13001'
VS
xdebug.idekey=PHPSTORM
你需要在PHPStorm中設置正確的idekey,並將端口更改為9000.80是apache(http服務器)的端口,所以它不會像你配置的那樣工作。
在這里查看在ide中設置idekey的位置: https ://www.jetbrains.com/help/phpstorm/2016.1/run-debug-configuration-php-remote-debug.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.