VS代码启动,默认用户配置文件不起作用

时间:2019-02-27 03:49:17

标签: angular visual-studio-code

我正在尝试调试我的角度应用程序,并且需要访问默认用户配置文件的cookie。当我声明"userDataDir": false VS代码引发错误时,

enter image description here

下面是我的launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
        "type": "chrome",
        "request": "launch",
        "name": "Launch Chrome against localhost",
        "url": "http://localhost:4301",
        "webRoot": "${workspaceRoot}",
        "userDataDir": false
    },
    {
        "type": "chrome",
        "request": "attach",
        "name": "Attach to Chrome",
        "port": 9222,
        "webRoot": "${workspaceRoot}"
    }
  ]
}

我想念什么吗?任何帮助将不胜感激。

0 个答案:

没有答案