Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
payonel opened this issue Nov 22, 2018 · 4 comments
Closed
Assignees
Labels
bug debugger fixed Check the Milestone for the release in which the fix is or will be available.
Milestone

Comments

@payonel
Copy link

payonel commented Nov 22, 2018

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; }

@pieandcakes pieandcakes added debugger investigate: repro This issue's repro steps needs to be investigated/confirmed labels Nov 26, 2018
@pieandcakes pieandcakes changed the title type "cppdbg" throw NullReferenceException on launch [VS Code Insiders] type "cppdbg" throw NullReferenceException on launch Nov 26, 2018
@WardenGnaw WardenGnaw added bug and removed investigate: repro This issue's repro steps needs to be investigated/confirmed labels Nov 27, 2018
@pieandcakes pieandcakes self-assigned this Nov 27, 2018
@pieandcakes pieandcakes added the fixed Check the Milestone for the release in which the fix is or will be available. label Nov 27, 2018
@sean-mcmanus sean-mcmanus added this to the December 2018 milestone Dec 11, 2018
@weinand
Copy link

weinand commented Dec 14, 2018

It would be great if reports of these kind of breaking behaviour in VS Code would reach us as soon as you find them in Insiders. We would have fixed this within one day (for the next Insiders).

@sean-mcmanus
Copy link
Collaborator

The debugger failure should be fixed now with our latest Insiders release: https://github.com/Microsoft/vscode-cpptools/releases . If you're using VS Code Insiders or have http.proxySupport not set to "off", you might not get the 0.21.0-insiders2 update automatically with C_Cpp.updateChannel set to "Insiders".

@FelixKimmerle
Copy link

FelixKimmerle commented Dec 21, 2018

I have the same issue with the Version
1.30.1
dea8705087adb1b5e5ae1d9123278e178656186a
x64

(so it's not an insider build)

Im also using Linux (Ubuntu 18.04)

@WardenGnaw
Copy link
Member

@FelixKimmerle This is now fixed with the latest cpptools insider's version.

See: #2922

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug debugger fixed Check the Milestone for the release in which the fix is or will be available.
Projects
None yet
Development

No branches or pull requests

6 participants