1. VSCode ๋๋ฒ๊ฑฐ
VSCode ์์ ์คํ ๋ฐ ๋๋ฒ๊ทธ๋ฅผ ๋๋ฌ์ create a launch.json file๋ฅผ ํด๋ฆญํ๋ค.
(1) Node.js๋ฅผ ์ ํ
1// .vscode/launch.json2{3// IntelliSense๋ฅผ ์ฌ์ฉํ์ฌ ๊ฐ๋ฅํ ํน์ฑ์ ๋ํด ์์๋ณด์ธ์.4// ๊ธฐ์กด ํน์ฑ์ ๋ํ ์ค๋ช ์ ๋ณด๋ ค๋ฉด ๊ฐ๋ฆฌํต๋๋ค.5// ์์ธํ ๋ด์ฉ์ ๋ณด๋ ค๋ฉด https://go.microsoft.com/fwlink/?linkid=830387์(๋ฅผ) ๋ฐฉ๋ฌธํ์ธ์.6"version": "0.2.0",7"configurations": [8{9"type": "node",10"request": "launch",11"name": "Debug NestJS",12"runtimeExecutable": "yarn",13// ์ฌ์ฉํ package.json ๋ช ๋ น์ด14"runtimeArgs": ["start:debug"],15// vscode ์์ ํฐ๋ฏธ๋ ์ฌ์ฉ16"console": "integratedTerminal",17"restart": true,18// NestJS ๊ธฐ๋ณธ ๋๋ฒ๊ทธ ํฌํธ 922919"port": 9229,20// ๋๋ฒ๊ฑฐ๋ฅผ ์๋์ผ๋ก ํ๋ก์ธ์ค์ ๋ถ์์ง ๋ง์ง21"autoAttachChildProcesses": true22}23]24}
(2) ๋ชจ๋ํฐ๋งํ ๊ณณ์ ๋ธ๋ ์ดํฌ ํฌ์ธํธ๋ฅผ ์ค์ ํ๊ณ , ์คํ ๋ฐ ๋๋ฒ๊ทธ ๋ฒํผ ํด๋ฆญํ๋ค.
- VScode์ ๋ธ๋ ์ดํฌ ํฌ์ธํธ๋ฅผ ์ฐ์ ๊ณณ์์ ๋ฉ์ถ๋ค.
- ์คํญ์ธํฌ ๋ฒํผ์ ๋๋ฌ ํ ์ค ์ฉ ๋ฉ์ถ๋ฉด์ ์งํ์ํฉ์ ํ์ธํ ์ ์๋ค.