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

Debugger and application not starting #2744

Closed
SeanOMik opened this issue Sep 14, 2022 · 2 comments
Closed

Debugger and application not starting #2744

SeanOMik opened this issue Sep 14, 2022 · 2 comments

Comments

@SeanOMik
Copy link

SeanOMik commented Sep 14, 2022

Brief Issue Summary

I'm trying to debug a project but when I click the debug button, nothing happens. I took a look at the logs but it doesn't really seem like anything happens. I've tried gcc and clang and gdb and lldb-mi all with the same results.

CMake Tools Diagnostics

{
  "os": "linux",
  "vscodeVersion": "1.69.1",
  "cmtVersion": "1.12.27",
  "configurations": [
    {
      "folder": "/mnt/data_drive/Development/Cpp/SimpleEngine",
      "cmakeVersion": "3.22.3",
      "configured": true,
      "generator": "Ninja",
      "usesPresets": false,
      "compilers": {
        "C": "/run/current-system/sw/bin/clang",
        "CXX": "/run/current-system/sw/bin/clang++"
      }
    }
  ],
  "cpptoolsIntegration": {
    "isReady": false,
    "hasCodeModel": false,
    "activeBuildType": "",
    "buildTypesSeen": [],
    "requests": [],
    "responses": [],
    "partialMatches": [],
    "targetCount": 0,
    "executablesCount": 0,
    "librariesCount": 0,
    "targets": []
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": true
    }
  ]
}

Debug Log

https://gist.github.com/SeanOMik/a3899fa4f3b815ab89e3a9fac88302c4

Additional Information

I took a look at the (non-debug) log file and it doesn't seem like it even tries to start and debug the program:

[main] Building folder: SimpleEngine dev_testing
[build] Starting build
[proc] Executing command: /nix/store/asp609pmpi09vlzdszhliffr65qppmy6-cmake-3.22.3/bin/cmake --build /mnt/data_drive/Development/Cpp/SimpleEngine/build --config Debug --target dev_testing --
[build] ninja: no work to do.
[build] Build finished with exit code 0
[proc] Executing command: /run/current-system/sw/bin/lldb-mi --version
[proc] Executing command: /run/current-system/sw/bin/lldb-mi --version
@bobbrow
Copy link
Member

bobbrow commented Sep 19, 2022

We're not sure what's happening here. The only thing that stands out is some of the environment variables with really long values. @WardenGnaw, do you know of any issues with running the debugger when there are a lot of environment variables or if they have really long values?

@WardenGnaw
Copy link
Member

WardenGnaw commented Sep 19, 2022

do you know of any issues with running the debugger when there are a lot of environment variables or if they have really long values?

Yep, this is specific for lldb-mi. There is an open PR to fix it but the maintainers have not accepted it yet.

lldb-tools/lldb-mi#87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Completed
Development

No branches or pull requests

4 participants