"request": "launch","name": "Launch Program","runtimeArgs": ["-r", "ts-node/register/transpile-only"],"env": {"NODE_ENV": "development","SERVER_PORT": "3000","CONSOLE_CONFIG": "config\\console.dev.json", //此json配置了启动时的一些项目参数,可选"CONSOLE_CONFIG_PATH": "C:\\U...
VSCode的debug配置 { "version": "0.2.0", "configurations": [ { "name": "Test", "type": "node", "request": "launch", "program": "${workspaceFolder}/scripts/cli.js", "stopOnEntry": false, "cwd": "${workspaceFolder}", "runtimeArgs": ["--nolazy"], "console": "integratedTermin...
require("../src/main.js").run(process.argv); VSCode的debug配置 { "version": "0.2.0", "configurations": [ { "name": "Test", "type": "node", "request": "launch", "program": "${workspaceFolder}/scripts/cli.js", "stopOnEntry": false, "cwd": "${workspaceFolder}", "runtimeArg...