我想在 vscode 上使用 Xdebug。我在閱讀官方文檔時(shí)嘗試了它,但無(wú)法讓它工作并收到以下錯(cuò)誤。Failed loading /usr/local/lib/php/pecl/20190902/xdebug.so: dlopen(/usr/local/lib/php/pecl/20190902/xdebug.so, 9): no suitable image found. Did find: /usr/local/lib/php/pecl/20190902/xdebug.so: stat() failed with errno=20PHP--iniFailed loading /usr/local/lib/php/pecl/20190902/xdebug.so: dlopen(/usr/local/lib/php/pecl/20190902/xdebug.so, 9): no suitable image found. Did find: /usr/local/lib/php/pecl/20190902/xdebug.so: stat() failed with errno=20Configuration File (php.ini) Path: /usr/local/etc/php/7.4Loaded Configuration File: /usr/local/etc/php/7.4/php.iniScan for additional .ini files in: /usr/local/etc/php/7.4/conf.dAdditional .ini files parsed: /usr/local/etc/php/7.4/conf.d/ext-opcache.ini還有其他人遇到過(guò)同樣的問(wèn)題嗎?謝謝。
1 回答

MMTTMM
TA貢獻(xiàn)1869條經(jīng)驗(yàn) 獲得超4個(gè)贊
添加了
export?PATH="$(brew?--prefix?php)/bin:$PATH"
到~/.bash_profile
.
您可以在編輯文件后運(yùn)行source ~/.bash_profile
以使更改生效。
- 1 回答
- 0 關(guān)注
- 140 瀏覽
添加回答
舉報(bào)
0/150
提交
取消