Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

299
Views
How to debug any file in node JS without specifying the file name in launch,json

Check this image

I want to debug both workout.js and test.js but vscode is debugging only the workout.js how do I set the file name dynamic. so I can debug any js file with one launch.json config

Like "program": "${workspaceFolder}/${currentFileName}.js",

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

Take a look at the official documentation about variable substitution in Debugging and Task configuration files, there are a few that can be used to achieve what you want.

about 4 years ago · Juan Pablo Isaza Report

0

The easy way is to add multiple settings inside your single lunch config file. and whenever you want to debug any then choose that name while debugging

about 4 years ago · Juan Pablo Isaza Report

0

Reffer this for more details Documnetaion

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Node js",
            "program": "${file}",
            "request": "launch",
            "skipFiles": ["<node_internals>/**"],
            "type": "node"
        }
    ]
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!