无环境联调

This commit is contained in:
luzhisheng 2022-02-21 18:38:48 +08:00
parent e1fb172953
commit 8ba81347ff
5 changed files with 110 additions and 1 deletions

BIN
img/58.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -136,4 +136,4 @@ es6 代理 Proxy
测试效果找到js在资源面板中打开在顶部打上断点控制台输入以上代码测试效果。
![debugger](../img/56.png)
![debugger](../img/57.png)

View File

@ -0,0 +1,28 @@
{
// 使 IntelliSense
//
// 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "启动程序",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/test.js"
},
{
"type": "pwa-node",
"request": "launch",
"name": "无环境浏览器联调",
"skipFiles": [
"<node_internals>/**"
],
"runtimeExecutable": "node-inspect",
"program": "${workspaceFolder}/test.js"
}
]
}

View File

@ -0,0 +1 @@
console.log(1)

View File

@ -0,0 +1,80 @@
## 安装中文包
Chinese (Simplified) (简体中文)
## 配置vscode
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "启动程序",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/test.js"
}
]
}
## 安装插件 npm install -g
// Node调试之node-inspect工具
npm install -g node-inspect
## 添加运行时可执行文件
{
"type": "pwa-node",
"request": "launch",
"name": "无环境浏览器联调",
"skipFiles": [
"<node_internals>/**"
],
"runtimeExecutable": "node-inspect",
"program": "${workspaceFolder}/test.js"
}
## launch.json 配置文件
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "启动程序",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/test.js"
},
{
"type": "pwa-node",
"request": "launch",
"name": "无环境浏览器联调",
"skipFiles": [
"<node_internals>/**"
],
"runtimeExecutable": "node-inspect",
"program": "${workspaceFolder}/test.js"
}
]
}
## 开启谷歌实验室功能
1. vscode启动程序
2. 在谷歌浏览器中打开之后按F12打开谷歌开发者工具可以看到下图所示内容
![debugger](../img/58.png)
这样就可以无环境联调了