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

vscode cannot start breakpoint debugging

王林
Release: 2020-02-12 14:26:39
Original
5783 people have browsed it

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
Copy after login

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"
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template