Ask questionsBad message: Cannot launch program 'c:\...'; setting the 'outFiles' attribute might help.

  • VSCode Version: 1.12.2
  • OS Version: Windows 10
  • From my answer on StackOverflow question which turns up high in Bing results searching for error message.

The VSCode message "Cannot launch program ... setting the 'outDir' attribute might help" can be very misleading, even as recently as VSCode v1.12.2. It was caused by a minor error in my launch.json file. I had:

        "type": "node",
        "request": "launch",
        "name": "Gulp",
        "program": "${workspaceRoot}/node_modules/gulp/bin",
        "sourceMaps": true,
        "outFiles": [

And fixed the problem by changing one line:

        "program": "${workspaceRoot}/node_modules/gulp/bin/gulp",

Despite what the message says, the outFiles property may not be necessary. Once I fixed the other problem, debugging seems to work fine without it.


Answer questions BurtHarris

The original problem is long forgotten. I'll mark it closed.


Related questions

the terminal process terminated with exit code #259 hot 7
XHR Failed on trying to install plugins via Visual Studio code
The terminal shell CWD "/c:/User..." does not exist - vscode hot 4
Insiders - We cannot connect to the Extensions Marketplace hot 3
Show offending file path, when "Tokenization is skipped for long lines for performance reasons. The length of a long line can be configured via `editor.maxTokenizationLineLength`." hot 3
launch: program ''does not exist hot 2
format code alt + shift + f hot 2
Corrupt ZIP: end of central directory record signature not found hot 2
"Initializing JS/TS Language Features" appears every time I open a JS file hot 2
dart is not recognized as internal or external command hot 2
Logitech MX Master: Horizontal scrolling via scroll wheel doesn't work hot 2
VS Code doesn't read Git packed-refs hot 2
Is it possible to use wsl bash php for php.validate.executablePath hot 2
Git Fetch fails with Missing or invalid credentials hot 2
Virtual Space is not implemented. hot 2
Github User Rank List