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

Cannot attach debugger to cpptools on Mac #6151

Closed
Colengms opened this issue Sep 15, 2020 · 4 comments
Closed

Cannot attach debugger to cpptools on Mac #6151

Colengms opened this issue Sep 15, 2020 · 4 comments
Labels
debugger fixed Check the Milestone for the release in which the fix is or will be available. investigate: repro This issue's repro steps needs to be investigated/confirmed Language Service
Milestone

Comments

@Colengms
Copy link
Collaborator

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.

@WardenGnaw WardenGnaw added debugger investigate: repro This issue's repro steps needs to be investigated/confirmed labels Sep 16, 2020
@sean-mcmanus sean-mcmanus self-assigned this Sep 23, 2020
@sean-mcmanus sean-mcmanus added this to the 1.1.0 milestone Sep 23, 2020
@sean-mcmanus
Copy link
Collaborator

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.

@sean-mcmanus
Copy link
Collaborator

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

@sean-mcmanus
Copy link
Collaborator

@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.

@sean-mcmanus
Copy link
Collaborator

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.

@sean-mcmanus sean-mcmanus changed the title Cannot attach debugger on Mac Catalina 10.15.6 Cannot attach debugger to cpptools on Mac Jan 4, 2021
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Jan 4, 2021
@sean-mcmanus sean-mcmanus removed their assignment Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger fixed Check the Milestone for the release in which the fix is or will be available. investigate: repro This issue's repro steps needs to be investigated/confirmed Language Service
Projects
None yet
Development

No branches or pull requests

4 participants