Software Development Engineering/PHP
[PHP] PHP + xDebug + vscode + Mac (BigSur+)
devxpert.yoon
2021. 1. 3. 20:02
728x90
반응형
-
xdebug (version 3.x.x +)
-
install
-
pecl install xdebug
- xdebug 3+ version will be installed (@2021.01.03)
-
configuration
-
php.ini
[xdebug] zend_extension="xdebug.so" xdebug.mode=debug |
-
check
-
$> php -i | grep “xdebug”
-
vscode connection
-
run vscode
-
shft+command+x (to bring up the extensions window)
-
find and install “PHP Debug”
-
open debug window (shift + command + D)
-
create launch.json
-
set xdebug port 9000 to 9003 (xdebug version 2.x.x = 9000, xdebug version 3.x.x = 9003)
728x90
반응형