我试图让断点在带有 Ember 插件(版本 3.18)的 VS Code 中工作。已尝试将 launch.json 设置为:
{
"version": "0.2.0",
"configurations": [
{
"type": "edge",
"request": "launch",
"name": "Launch Edge against localhost",
"port": 9222,
"runtimeArgs": [ "--remote-debugging-port=9222" ],
"url": "http://localhost:4200",
"sourceMapPathOverrides": {
"dummy/*": "${workspaceFolder}/tests/dummy/app/*",
"test-addon/*": "${workspaceFolder}/addon/*",
}
}
]}
它适用于在虚拟测试应用程序的文件中设置断点。但是在插件文件夹中的文件中设置断点时,VSCode 会说“断点已设置但尚未绑定”。如何解决这个问题?我假设第二个源映射路径覆盖是错误的?