• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

청개구리 기질로 npm을 쓰는 분들을 위한 launch.json 파일 공유

23.12.20 17:52 작성 조회수 205

0

청개구리 기질로 npm으로 하고 싶어서 강의를 따라오다 여기서 막혀서 구글링 삽질로 해결 했던 정보를 공유 해요~

// launch.json

{
  // 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": [
    {
      "type": "node", // 세팅의 타입
      "request": "launch", // launch 실행하는거, attach 실행되있는거에 붙는거
      "name": "Debug NestJS", // 어떤 이름으로 부를건지
      "runtimeExecutable": "npm", // 어떤걸로 실행 할건지 node, yarn ...
      "runtimeArgs": ["run", "start:debug"], // npm run start:dev 에서 npm이 runtime이고 run start:dev가 Args임
      "console": "integratedTerminal", // intergratedTerminal은 vscode에서 실행하는 터미널임
      "restart": true, // 자동 연결 할건지
      "port": 9229,
      "autoAttachChildProcesses": true // 디버거를 자동으로 process에 붙을지 말지 결정
    }
  ]
}

답변 1

답변을 작성해보세요.

1

안녕하세요!

공유 감사합니다!