参考:使用VsCode进行python代码调试参数(args)添加方法_zaf赵的博客-CSDN博客_args vscodedd
![](https://i-blog.csdnimg.cn/blog_migrate/65900aa65aefb6cfa22463ff8e4353b2.png)
{
"configurations": [
{
"type": "java",
"name": "Spring Boot-App<Ctem>",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"mainClass": "org.example.App",
"projectName": "Ctem",
"args": [
"--spring.config.location=${workspaceFolder}\\src\\main\\resources\\application-dev.yml",
],
"vmArgs": "",
"envFile": "A/.env"
}
]
}