问题描述
我需要在调试中打开浏览器,他链接到谷歌浏览器需要打开的位置
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 等路径解析为磁盘上的文件。 “/”的路径映射的简写。