vscode中调试react

1、在工程目录下添加.vscode/launch.json文件

添加配置

{
    "configurations": [
    {
        "name": "Launch Chrome",
        "request": "launch",
        "type": "pwa-chrome",
        "url": "http://localhost:3000",
        "webRoot": "${workspaceFolder}"
    }
    ]
}

2、运行调试

vscode中调试react_第1张图片

参考资料:

https://zhuanlan.zhihu.com/p/475999585

你可能感兴趣的:(react,vscode,react.js,前端)