系统:Windows 7 VsCode:1.48.2 Node.js:12.8.1
Part 1:背景介绍
js介绍(百度百科)

Node.js菜鸟教程介绍

VsCode

Part 2: VsCode配置
扩展包


运行代码

执行过程

Part 3:VsCode代码调试功能设置
.vscode文件夹,里面会生成一个文件launch.jsonlaunch.json修改,修改其中configurations的内容如下,注意program修改成自己js文件的名称调试工具

.vscode文件夹

launch.json
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/arr.js",
}
]
}launch.json截图

代码调试

本文为原创作品,欢迎分享朋友圈