vscode该如何配置launch.json配置文件?(webpack指令启动的话)
指令 “web-dev”: “webpack-dev-server --config webpack.web.dev.js -p --open --hot --inline”,
9 回复
选 npm 启动方式
runtimeArgs该怎么填?@atian25
看官方文档
{
// 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": [
{
"name": "Launch Npm",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "npm",
"runtimeArgs": [ "run", "debug" ],
}
]
}
@atian25 谢谢,我试试看
一直报这个错,不知道为什么@atian25
加个 protocol 和 port 具体看官方文档