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

1 min read Original article ↗

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