我使用 VSCode 有一段时间了,由于某种原因 Chrome 调试器不与我合作。附上案例视频:
同样,这是我的 launch.json 文件:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Debug in Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/public"
},
]
}