microsoft / microsoft/vscode-cpptools

ERROR: During startup program exited with code 0xc0000135.

Open
#11,398 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

debugger
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Lately, I've been using VSCode to run and debug my C++ code, but when I try to debug vectors, maps, and list types, I can't see all the items. I noticed that I could configure it to be able to view them. So, I created a launch.json file to do that, but the Debug Console is displaying this message block [obvious censorship]:

=thread-group-added,id="i1"
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
=cmd-param-changed,param="args",value="/Users/alan/dev/ginga/ginga/examples/primeiro-joao/00syncProp.ncl"
[New Thread 28496.0x58f4]
[New Thread 28496.0x22b8]
[New Thread 28496.0x4f98]
[New Thread 28496.0x1c08]
ERROR: During startup program exited with code 0xc0000135.
The program path\program.exe' has exited with code 0 (0x00000000).

launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug",
            "type": "cppdbg",
            "request": "launch",
            // Resolved by CMake Tools:
            "program": "${command:cmake.launchTargetPath}",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}/build",
            "environment": [
                {
                    // add the directory where our target was built to the PATHs
                    // it gets resolved by CMake Tools:
                    "name": "PATH",
                    "value": "$PATH:${command:cmake.launchTargetDirectory}"
                }
            ],
            "externalConsole": true,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ]
        }
    ]
}

I've been searching, but I couldn't find the answer I was looking for. I wanted to help.

Screenshot of my Debug without the launch.json:
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported launch.json configuration and reproduce the C++ debug session in VS Code, focusing on the GDB startup output and the PATH environment entry. Compare behavior with and without launch.json; done means identifying and documenting the cause of the 0xc0000135 startup exit or confirming the required configuration change.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.