Skip to content

[VS Code Insiders] type "cppdbg" throw NullReferenceException on launch #2858

@payonel

Description

@payonel

Type: Debugger

Additional context
PLEASE NOTE This works on VSCode stable release, only crashing on insiders build

Version: 1.30.0-insider
Commit: 0d3a14402d88f0f555ab3250c3ffd4c45a251665
Date: 2018-11-22T06:14:14.378Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Linux x64 4.15.0-39-generic

Using type "cppdbg" failing to launch cpp program [ basic hello world, basic auto generated launch script ]

In the debugger window it prints:
Stopping due to fatal error: NullReferenceException: Object reference not set to an instance of an object

To Reproduce
launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "C++ Launch",
      "type": "cppdbg",
      "request": "launch",
      "program": "${workspaceRoot}/a.out",
      "args": [],
      "stopAtEntry": false,
      "cwd": "${workspaceRoot}",
      "environment": [],
      "externalConsole": true,
      "linux": {
          "MIMode": "gdb",
          "setupCommands": [
              {
                  "description": "Enable pretty-printing for gdb",
                  "text": "-enable-pretty-printing",
                  "ignoreFailures": true
              }
          ]
      }
  }
]
}

code
int main() { return 0; }

Metadata

Metadata

Labels

bugdebuggerfixedCheck the Milestone for the release in which the fix is or will be available.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions