喜欢Grommet和 vscode。试图让他们一起玩。我可以让 Express 和 vscode 工作,如此处所示。我想让grommet-cli 示例应用程序以类似方式工作。Express 有一个启动命令:“npm start”,其中 grommet-cli 有两个:“npm run dev-server”和“npm run dev”(不知道如何在 vscode 中启动它们。我想我可能需要多会话调试?)。如何设置 launch.json 来调试示例应用程序?我希望能够在 IE/Edge 中进行调试。我使用 Debugger for Chrome 扩展在 Chrome 中取得了一些成功。
这是我当前的launch.json:
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3000",
"webRoot": "${workspaceRoot}"
},
{
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
"port": 9222,
"webRoot": "${workspaceRoot}"
}
]
}