Problem:
When debugging PHP breakpoints in vscode, press the F5 key to debug, but the breakpoints are not executed.
Solution:
When setting up the php extension, under Windows, the method is usually to modify php.ini and add extension, for example:
extension=php_mbstring.dll
But for For some zend extensions, do not use this method. Use zend_extension directly. Here we will use xdebug to explain:
zend_extension="C:/php/ext/php_xdebug-2.7.2-7.1-vc14.dll"
After setting up, restart the apache or nginx server, set the breakpoint, and you can execute it correctly. It stops at the breakpoint.
Related recommendations:vscode tutorial
The above is the detailed content of vscode cannot start breakpoint debugging. For more information, please follow other related articles on the PHP Chinese website!