Skip to content

Linux: Debugger does not start after upgrading to 0.20 #2785

@s-martin

Description

@s-martin

Type: Debugger

Describe the bug

  • OS and Version: CentOS 7.5
  • VS Code Version: 1.28.2
  • C/C++ Extension Version: 0.20.1
  • Other extensions you installed (and if the issue persists after disabling them):

To Reproduce
Steps to reproduce the behavior:

  1. Compile project (I use CMake and cmake-tools)
  2. Click 'Launch Debugger'
  3. Nothing happens
  4. Debugging process is started, but won't be closed when closing VSCode

Additional context

  • Debugging worked before 0.20.
  • I use GCC 7 (with Software Collections devtoolset-7), other wise it would be GCC 4.8.5

ps aux after closing VSCode:

mts      13588  0.0  0.0 113172  1484 ?        S    11:16   0:00 bash /home/mts/.vscode/extensions/ms-vscode.cpptools-0.20.1/debugAdapters/OpenDebugAD7
mts      13598  0.3  0.6 784172 34832 ?        Sl   11:16   0:00 /home/mts/.vscode/extensions/ms-vscode.cpptools-0.20.1/debugAdapters/mono.linux-x86_64 --config /home/mts/.vscode/extensions/ms-vscode.cpptools-0.

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "MyApp Launch",
            "type": "cppdbg",
            "request": "launch",
            "targetArchitecture": "x64",
            "program": "${workspaceRoot}/Debug/bin/MyApp",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceRoot}",
            "environment": [],
            "externalConsole": true,
            "linux": {
                "MIMode": "gdb",
                "setupCommands": [
                    { "text": "-enable-pretty-printing", "description": "enable pretty printing", "ignoreFailures": true }  
                ]
            },
            "osx": {
                "MIMode": "lldb"
            },
            "windows": {
                "MIMode": "gdb",
                "miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe",
                "setupCommands": [
                    { "text": "-enable-pretty-printing", "description": "enable pretty printing", "ignoreFailures": true }
                ]
            }
        },
        {
            "name": "MyApp Attach",
            "type": "cppdbg",
            "request": "attach",
            "program": "${workspaceRoot}/Debug/bin/MyApp ",
            "processId": "${command:pickProcess}",
            "linux": {
                "MIMode": "gdb",
                "setupCommands": [
                    { "text": "-enable-pretty-printing", "description": "enable pretty printing", "ignoreFailures": true }  
                ]
            },
            "osx": {
                "MIMode": "lldb"
            },
            "windows": {
                "MIMode": "gdb"
            }
        }
    ]
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions