【发布时间】:2020-06-27 14:32:25
【问题描述】:
我是 vscode 新手。
我的问题可能看起来很愚蠢。
我有 3 个文件:index.html、index.js 和 index.css。
我安装了 chrome 调试扩展,但不知道如何运行我的代码
如果我想运行/调试,我会在 chrome 中收到此错误
我确定问题出在launch.json 文件上。这里是:
{
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
我想要的是要启动的 index.html
【问题讨论】:
-
不,它只是静态网页
-
使用 python SimpleHTTPServer 提供目录中的静态内容