You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VS Code + PHP on macOS Big Sur 11.2.1 - issues with default interpreter #516
Start VS Code. Confirm in Terminal window that the debugger is active.
php -v
PHP 7.4.8 (cli) (built: Jul 30 2020 02:10:12) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Xdebug v3.0.3, Copyright (c) 2002-2021, by Derick Rethans
with Zend OPcache v7.4.8, Copyright (c), by Zend Technologies
Run phpinfo() in a test script. Output shows
phpinfo()
PHP Version => 7.3.24-(to be removed in future macOS)
which of course doesn't have xdebug active, so stepping etc. doesn't work.
Workaround: edit launch.json. Edit the "Launch currently open script" section. Add
"runtimeExecutable": "/usr/local/bin/php",
VS Code then runs the correct PHP version.
Extension version: 1.14.9
VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:45:54.515Z)
OS version: Darwin x64 20.3.0
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (8 x 2500)
Activity
zobo commentedon May 23, 2022
This was fixed in #706 Please see #705 for more detailed explanation what was happening.