vscode中launch.json文件的配置
转载内容:https://blog.csdn.net/qq_36150293/article/details/121063068
更正博主一个遗忘的细节:
代码参考:(主要是program配置)
// 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": [
{
//配置类型,这里是chrome浏览器类型
"type": "chrome",
// 请求配置类型,可以为launch(启动)或attach(附加)
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "${file}",
"sourceMaps": true,
"webRoot": "${workspaceRoot}"
},
{
"name": "nodeLauch", //单独调试js,即可以直接运行js
"type": "node",
"request": "launch",
"program": "D:\\c\\cAndPointLearn\\source\\${fileBasenameNoExtension}.exe", //这个配置成你要调试的文件、${file}当前打开的文件
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"preLaunchTask": "",
"sourceMaps": false
}
]
}
本文作者:远道而重任
本文链接:https://www.cnblogs.com/rong-xu-drum/p/16387809.html
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步