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

164
Views
vs code : launch.json

I'm having an issue with launch.json. when i download vscode. then i run(press f5 for debug) any code file , file doesn't running ... its showing like vscode came without launch.json,task.json, setting.json.. after that i copied the launch.json from githib.. its showing error(given in picture) when I run any file of js (javascript) .

and tried to work on c++ on vscode with MingW, but vscode doesn't worked with MingW.... when i run file of c++ in vscode terminal and showing thi error : enter image description here

enter image description here

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

0

Your launch file is for java script code and not for C/C++.

Please follow the instructions on Microsoft's site for VS Code:

https://code.visualstudio.com/docs/cpp/config-msvc

or in your case:

https://code.visualstudio.com/docs/cpp/config-mingw

Your launch.json file should look something like this:

{
  "tasks": [
    {
      "type": "cppbuild",
      "label": "C/C++: g++.exe build active file",
      "command": "C:\\msys64\\mingw64\\bin\\g++.exe",
      "args": [
        "-fdiagnostics-color=always",
        "-g",
        "${file}",
        "-o",
        "${fileDirname}\\${fileBasenameNoExtension}.exe"
      ],
      "options": {
        "cwd": "${fileDirname}"
      },
      "problemMatcher": ["$gcc"],
      "group": {
        "kind": "build",
        "isDefault": true
      },
      "detail": "Task generated by Debugger."
    }
  ],
  "version": "2.0.0"
}
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!