0
저는 NodeJS에 대한 일련의 Pluralsight 자습서를 실행 중이며 다양한 개념을 증명할 수있는 ~ 10 가지 JS 파일이있는 디렉토리가 있습니다.동적 launch.json 프로그램 javascript 파일
F5
내 코드를 디버깅하고 싶을 때마다 내 "program:"
매개 변수가 현재 자바 스크립트 파일로 설정되어 있는지 확인해야합니다. 이는 매우 짜증나게합니다.
동적으로이를 수행하여 3 분마다 확인해야하는 저를 구할 방법이 있습니까?
단순히 파일 이름을 가지고 있지만 다음과 같은 오류 얻을 "program:"
두면 :
Cannot launch program 'C:\node\NodeJS Pluralsight\js'; setting the 'outFiles' attribute might help.
가 여기 내 현재
launch.json
:
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}/js/currentFile.js", // What I'd like to change
"outFiles": [ "${workspaceRoot}/**/*.js" ]
},
{
"type": "node",
"request": "attach",
"name": "Attach to Process",
"address": "localhost",
"port": 5858
}