Skip to content

Cannot attach debugger to cpptools on Mac #6151

Closed

Description

Using the following launch.json, I'm unable to attach (to cpptools) on Mac Catalina 10.15.6.

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(lldb) Attach",
            "type": "cppdbg",
            "request": "attach",
            "processId": "${command:pickProcess}",
            "program": "/Users/Colen/.vscode/extensions/ms-vscode.cpptools-1.0.0/bin/cpptools",
            "MIMode": "lldb"
        }
    ]
}

This results in an immediate Debugger has disconnected from the program /Users/Colen/.vscode/extensions/ms-vscode.cpptools-1.0.0/bin/cpptools message.

Activity

  1. sean-mcmanus commented on Sep 23, 2020

    @sean-mcmanus
    Contributor

    Bob was mentioning he thought this was an issue with cpptools/cpptools-srv exiting out of the message loop, so I'm trying the workaround he created a year ago.

  2. sean-mcmanus commented on Sep 23, 2020

    @sean-mcmanus
    Contributor

    That seems to work for cpptools, but not sure about cpptools-srv yet.

  3. sean-mcmanus commented on Dec 24, 2020

    @sean-mcmanus
    Contributor

    Andrew Wang (@WardenGnaw) I can't investigate this because I get "WARNING: Debugger executable '/.vscode/extensions/ms-vscode.cpptools-1.1.3/debugAdapters/lldb-mi/bin/lldb-mi' is not signed. As a result, debugging may not work properly.

  4. sean-mcmanus commented on Jan 4, 2021

    @sean-mcmanus
    Contributor

    I fixed the lldb-mi signing issue via signing it, and I fixed this issue for cpptools, but therer's still some other debugger issue preventing breaking into the debugger.

  5. changed the title [-]Cannot attach debugger on Mac Catalina 10.15.6[/-] [+]Cannot attach debugger to cpptools on Mac[/+] on Jan 4, 2021
  6. added
    fixedCheck the Milestone for the release in which the fix is or will be available.
    on Jan 4, 2021
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

    Language ServicedebuggerfixedCheck the Milestone for the release in which the fix is or will be available.investigate: reproThis issue's repro steps needs to be investigated/confirmed

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions