■ 비주얼 스튜디오 코드의 .vscode/launch.json 파일에서 환경 변수를 설정하는 방법을 보여준다.
▶ .vscode/launch.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
{ "version" : "0.2.0", "configurations" : [ { "name" : ".NET Core Launch (web)", "type" : "coreclr", "request" : "launch", "preLaunchTask" : "build", "program" : "${workspaceFolder}/bin/Debug/netcoreapp3.1/TestProject.dll", "args" : [], "cwd" : "${workspaceFolder}", "stopAtEntry" : false, "serverReadyAction" : { "action" : "openExternally", "pattern" : "\\bNow listening on:\\s+(https?://\\S+)" }, "env" : { "ASPNETCORE_ENVIRONMENT" : "Development", "ASPNETCORE_URLS" : "https://localhost:5001", "ASPNETCORE_DETAILEDERRORS" : "1", "ASPNETCORE_SHUTDOWNTIMEOUTSECONDS" : "3" }, "sourceFileMap" : { "/Views" : "${workspaceFolder}/Views" } }, { "name" : ".NET Core Attach", "type" : "coreclr", "request" : "attach", "processId" : "${command:pickProcess}" } ] } |