【发布时间】:2018-07-30 22:32:44
【问题描述】:
谁能告诉我如何使用 Edge 浏览器扩展进行调试?我阅读了文档,但我对 json.config 非常不熟悉,这对我来说毫无意义。我不明白我应该把这个文件放在哪里或者它是如何生成的。
我从 powershell 的角度理解 json.config,因为有一个解释。我似乎无法利用这些知识在浏览器中进行调试。
因为我是这个界面的新手。当我单击调试器中的齿轮时,我得到:
{
"folders": [],
"settings": {}
}
这是 json.config 吗?我真的不确定。
我正在尝试按照此处的说明执行启动模式: https://github.com/Microsoft/vscode-edge-debug
它说把这个放在 json.config 中:
{
"version": "0.1.0",
"configurations": [
{
"name": "Launch localhost with sourcemaps",
"type": "edge",
"request": "launch",
"url": "http://localhost/mypage.html",
"webRoot": "${workspaceRoot}/app/files",
"sourceMaps": true
},
{
"name": "Launch index.html (without sourcemaps)",
"type": "edge",
"request": "launch",
"file": "${workspaceRoot}/index.html"
},
]
}
我不知道是否应该清除所有其他设置或将其嵌套在预定义区域之一中。
希望有人能解释一下。
最终我试图让某种形式的 javascript 调试与 SharePoint 一起工作,但现在我只想让插件正常工作。
【问题讨论】:
标签: javascript debugging sharepoint visual-studio-code