Skip to content

1.23.5+: cppdbg is no longer compatible with CentOS 7 and RHEL 7 #13219

Closed as not planned
Closed as not planned

Description

@kzhdev

Environment

  • OS and version: Mac OS Sequoia 15.3
  • VS Code: 1.96.4
  • C/C++ extension: 1.23.5
  • OS and version of remote machine (if applicable): CentOS Linux 7.3
  • GDB / LLDB version: GDB 10.2-6.el7

Bug Summary and Steps to Reproduce

Bug Summary:
cppdbg not launching anymore. When clicked on the green arrow to start the debugger, a clock shows on the debug button on left side bar and disappears right away. There is nothing in the DEBUG CONSOLE and no related log messages anywhere. I don't know exactly what's wrong.

How do I figure out why the debugger doesn't start?

Steps to reproduce:

  1. In this environment...
  2. With this config...
  3. Do '...'
  4. See error...

Debugger Configurations

{
            "name": "UnitTest",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/cmake-build-debug/PMGUTestApp",
            "cwd": "${workspaceFolder}",
            "stopAtEntry": false,
            "externalConsole": false,
            "MIMode": "gdb",
            "miDebuggerPath": "/opt/rh/devtoolset-11/root/usr/bin/gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ]
        },

Debugger Logs

There is no debugger logs

Other Extensions

No response

Additional Information

No response

Activity

  1. sean-mcmanus commented on Jan 31, 2025

    @sean-mcmanus
    Contributor

    There's also a discussion thread with 2 other users reporting this on CentOS 7 at #13213 (reply in thread) .

  2. changed the title [-]cppdbg stopped working[/-] [+]1.23.5: cppdbg stopped working on CentOS 7[/+] on Jan 31, 2025
  3. removed this from the 1.24 milestone on Jan 31, 2025
  4. github-actions commented on Feb 1, 2025

    @github-actions

    Thank you for reporting this issue. We’ll let you know if we need more information to investigate it. Additionally, if you're working with GDB/LLDB, please note that the code is open source at https://github.com/microsoft/MIEngine/wiki/Contributing-Code . Your contributions are always welcome and appreciated.

  5. 7 remaining items

  6. added
    more votes neededIssues that have been postponed until more community members upvote it
    and removed
    help wantedCan be fixed in the public (open source) repo.
    on Feb 6, 2025
  7. changed the title [-]1.23.5: cppdbg stopped working on CentOS 7 and RHEL 7[/-] [+]1.23.5+: cppdbg is no longer compatible with CentOS 7 and RHEL 7[/+] on Feb 6, 2025
  8. removed this from the 1.24 milestone on Feb 6, 2025
  9. github-actions commented on Feb 7, 2025

    @github-actions

    This issue has been closed because the described behavior was determined to be by design.

  10. ScanderDevMode commented on Mar 1, 2025

    @ScanderDevMode

    Solution : Use the version 1.22.11 of cpp tools extension. That one was the last one available which worked on CentOS7, since it was using the older GLIBC lib.

    Steps to Downgrade:

    1. Open VS Code.
    2. Go to Extensions (Ctrl + Shift + X).
    3. Search for "C++".
    4. Click on the gear icon ⚙️ next to the C++ extension → "Install Another Version".
    5. Select version 1.22.11.
    6. Disable auto-updates

    Posting this here if anyone stumbles here.

  11. MikeWang000000 commented on Apr 20, 2025

    @MikeWang000000

    I made a patched version of VS Code Server linking to latest glibc & libstdc++.
    vscode-cpptools can run on it smoothly too.

    It is open source:
    https://github.com/MikeWang000000/vscode-server-centos7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    by designdebuggermore votes neededIssues that have been postponed until more community members upvote itregressionA bug that didn't exist in a previous release

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions