Home  >  Article  >  Development Tools  >  Solution to the problem that vscode breakpoints cannot be added

Solution to the problem that vscode breakpoints cannot be added

angryTom
angryTomOriginal
2020-02-05 17:01:057106browse

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
}

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!

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