PHP:Xdebug 存取被拒絕,但退出時代碼為 0
P粉648469285
P粉648469285 2024-03-29 17:49:15
0
1
299

我已經在 Mac 上使用 XAMPP 設定了 PHP 項目,並在那裡安裝了 Xdebug,但在我的 PhpStorm 上我得到:

我在網路上找不到任何東西。

我的 php.ini

[xdebug]
;zend_extension=xdebug.so
zend_extension=/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back=0
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9002
xdebug.remote_log="/mnt/log/xdebug.log"
xdebug.remote_autostart=1
xdebug.idekey=phpstorm
xdebug.remote_mode = req

P粉648469285
P粉648469285

全部回覆(1)
P粉824889650

我可能會遲到,但請確保 XDebug 具有對該資料夾的寫入權限,更不用說如果您使用的是 Docker。

如果是本地的,那麼只是出於調查目的嘗試:

chmod 777 /mnt/log/xdebug.log

但是,我寧願選擇指定一個資料夾來記錄檔案。

如果它在 Docker 中運行,則「chmod」實際安裝的資料夾。

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!