在我使用 PhpStorm (2018.1) 的 Laravel 項目中,我無法使用 xdebug (2.9.5) 調試我的會話。任何斷點都會被忽略,會話結束而不會暫停。如果我在 PHP 腳本的第一行設置中斷,則會話在 index.php 文件處停止。我正在使用 Ubuntu 20.04。PHP 7.4.5 (cli) (built: Apr 23 2020 08:10:29) ( NTS )Copyright (c) The PHP GroupZend Engine v3.4.0, Copyright (c) Zend Technologies with Xdebug v2.9.5, Copyright (c) 2002-2020, by Derick Rethans這是我在 php.ini 中對 xdebug 的設置[xdebug]zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20190902/xdebug.soxdebug.remote_enable=1xdebug.remote_port=9001xdebug.remote_log="/tmp/xdebug.log"我有一些 PhpStorm 設置:我在這里錯過了什么?我的 Chromium 中也有 Xdebug 助手擴展,但啟用和禁用它似乎具有相同的效果。
1 回答

白衣染霜花
TA貢獻1796條經驗 獲得超10個贊
在我使用 PhpStorm (2018.1) 的 Laravel 項目中,我無法使用 xdebug (2.9.5) 調試我的會話。
它剛剛觸發:
PhpStorm 2018.1
調試 2.9.5
您必須升級 PhpStorm。您需要 PhpStorm 2018.3 或更新版本才能使用 Xdebug 2.7 或更新版本。
問題出在 Xdebug 協議中更改的 XML 命名空間,從 Xdebug 2.7 開始(https 而不是 http)。自 PhpStorm 2018.3(參見WI-43622?)以來,它已得到修復/支持。
使用您當前的 IDE 版本,您可以使用 Xdebug 2.6.x max(不支持 PHP 7.4)。
- 1 回答
- 0 關注
- 231 瀏覽
添加回答
舉報
0/150
提交
取消