Home >Development Tools >VSCode >vscode cannot start breakpoint debugging

vscode cannot start breakpoint debugging

王林
王林Original
2020-02-12 14:26:395813browse

vscode cannot start breakpoint debugging

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn