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

Unable to launch debugger #4211

Open
pxl9588 opened this issue Dec 10, 2024 · 2 comments
Open

Unable to launch debugger #4211

pxl9588 opened this issue Dec 10, 2024 · 2 comments
Labels
more info needed More info is needed from the community for us to properly triage and investigate.

Comments

@pxl9588
Copy link

pxl9588 commented Dec 10, 2024

Brief Issue Summary

Launching debugger for the selected target does not work. After multiple reloads of VS Code it will eventually work. There is no issue building or launching the target, only when debugging.

I am connected to a docker container through VS Code.

CMake Tools Diagnostics

{
  "os": "linux",
  "vscodeVersion": "1.95.3",
  "cmtVersion": "1.20.30",
  "configurations": [
    {
      "folder": "/workarea",
      "cmakeVersion": "3.31.0",
      "configured": true,
      "generator": "Ninja",
      "usesPresets": false,
      "compilers": {
        "C": "/opt/bb/bin/gcc",
        "CXX": "/opt/bb/bin/g++"
      }
    }
  ],
  "cpptoolsIntegration": {
    "isReady": false,
    "hasCodeModel": false,
    "activeBuildType": "",
    "buildTypesSeen": [],
    "requests": [],
    "responses": [],
    "partialMatches": [],
    "targetCount": 0,
    "executablesCount": 0,
    "librariesCount": 0,
    "targets": []
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": false
    }
  ]
}

Debug Log

When trying to launch the debugger:
[extension] [1222] cmake.debugTarget finished (returned undefined)

Possibly related, when trying to set the build target:
[extension] [2831] cmake.setDefaultTarget finished (returned undefined)

Additional Information

Selecting the launch target does not have the same issue:

[extension] [3327] cmake.selectLaunchTarget finished (returned "/home/nobody/buildarea/___/___.exe")

No response

@pxl9588
Copy link
Author

pxl9588 commented Dec 10, 2024

I don't think setting the default target is related. After many restarts, the debugger launched and I still see:

cmake.setDefaultTarget finished (returned undefined)

@Yingzi1234
Copy link
Collaborator

@pxl9588 We can't reproduce your problem, could you provide us with a reproducible item and a specific step-by-step video of how to reproduce it?
Image

@Yingzi1234 Yingzi1234 added more info needed More info is needed from the community for us to properly triage and investigate. and removed triage labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed More info is needed from the community for us to properly triage and investigate.
Projects
Status: Blocked
Development

No branches or pull requests

2 participants