Home > Development Tools > VSCode > body text

Solution to the problem that vscode breakpoints cannot be added

angryTom
Release: 2020-02-05 17:01:05
Original
7036 people have browsed it

Solution to the problem that vscode breakpoints cannot be added

Solution to the problem that vscode breakpoints cannot be added

1. VS CODE installs the extension Debugger for Chrome.

2, open launch.json, add the configuration in the configurations array:

{
    "type": "chrome",
    "request": "launch",
    "name": "使用Chrome 调试",
    "url": "http://localhost:4200",
    "webRoot": "${workspaceRoot}",
    "sourceMaps": true
}
Copy after login

3, go back to the code, move the mouse to the left of VS CODE and you will find a The small dark red dot, where you want to debug, just light up the small red dot.

Recommended related article tutorials: vscode tutorial

4. After lighting the breakpoint in the related business, press F5, the chrome browser will automatically open and access the related business , you can enter the breakpoint.

Solution to the problem that vscode breakpoints cannot be added

The above is the detailed content of Solution to the problem that vscode breakpoints cannot be added. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!