보관함

NodeJs VSCode 에 Debugging 환경 구축

node를 실행

yarn start

vscode에 launch.json

{ // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. // 기존 특성에 대한 설명을 보려면 가리킵니다. // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. “version”: “0.2.0”, “configurations”: [ { “type”: “chrome”, “request”: “launch”, “name”: “Launch Chrome against localhost”, “url”: “http://localhost:3000”, “webRoot”: “${workspaceFolder}/src” } ] }

[…]

NodeJs VSCode 에 Remote Debugging 환경 구축

터널링 구축

ssh -N -L 9221:localhost:9229 [remoteIP]

node를 inspection 모드로 변경 & 웹 서버 실행

node –inspect & yarn start

vscode에 launch.json

{ // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. // 기존 특성에 대한 설명을 보려면 가리킵니다. // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. “version”: “0.2.0”, “configurations”: [ { “address”: “localhost”, “localRoot”: “${workspaceFolder}”, “name”: “Attach […]