[nodejs]vscode에서 nodejs실행하기

in #nodejs6 years ago (edited)

작업폴더를 보면 위와같이 launch.json파일이 보일텐데

해당파일을 열어보면

와 같이 program부분이 있을텐데 이걸 내가 실행하는 node파일 경로를 넣으면됨

나같은 경우에는 해당 폴더에서 node app.js를 하는데 그래서 위와 같이 app.js로 한것

그후에 상단메뉴의 디버그의 디버그 시작을 누르거나 F5를 누르면 vscode에서 바로 node를 실행할 수 있다.
중지는 디버그메뉴의 디버그 중지나 shift + F5

Sort:  

Congratulations @servlet! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!