如何解决需要打开调试并向本地主机显示页面:8080
我需要在调试中打开浏览器,他链接到谷歌浏览器需要打开的位置
localhost:8080
在我的 luch.json
中,我有:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information,visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0","configurations": [
{
"url":"http://localhost:8080","type": "pwa-chrome","request": "launch","name": "Open index.html","file": "c:\\Users\\franc\\Desktop\\Angular js\\progetti\\Modulo 4 routing\\codice mio\\index.html",}
]
}
问题是谷歌浏览器调试是到这个链接:
file:///C:/Users/franc/Desktop/Angular%20js/progetti/Modulo%203%20Controlli/Codice%20mio/index.html/orders
并且没有加载任何内容。任何人都可以帮助我在 loalhost:8080 中使用 Visual Studio 代码打开调试控制台并加载数据?
解决方法
将此添加到您的配置中,
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd' for architecture x86_64
从终端/cmd 运行 "version": "0.2.0","configurations": [
{
"name": "Debug in Chrome","type": "chrome","request": "launch","port": 9229,"webRoot": "${workspaceRoot}/src","runtimeArgs": [
"debug:start"
],"resolveSourceMapLocations": [
"${webRoot}/**","!**/node_modules/**"
]
}
]
。
workspaceRoot 指定 Web 服务器根目录的工作区绝对路径。用于将 /app.js 等路径解析为磁盘上的文件。 “/”的路径映射的简写。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。