【发布时间】:2022-01-16 11:34:15
【问题描述】:
我正在努力配置 VSCode launch.json 以通过 HTTPS 协议上的 yarn start -ssl 命令运行 NodeJS 服务器。
我的 launch.json 是:
{
"command": "yarn start --ssl",
"name": "SienaFE",
"request": "launch",
"type": "node-terminal",
"cwd": "${workspaceFolder}/SienaFE",
}
忽略 --ssl 属性。我想以这种方式启动服务器,以便我可以访问 VS 代码中的 JS 调试以及 VS 代码中的终端输出。
但是它只在 HTTP 上启动服务器。
谁能帮我配置在 HTTPS 上运行 NodeJS?
非常感谢!
【问题讨论】:
标签: node.js visual-studio-code https yarnpkg