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 debug a executable linked by ld.lld with lldb debugger when using a pure LLVM MinGW toolchain. #2509

Closed
securasu opened this issue Apr 19, 2022 · 1 comment · Fixed by #2510
Labels
bug a bug in the product Feature: debug/launch
Milestone

Comments

@securasu
Copy link

securasu commented Apr 19, 2022

Brief Issue Summary

Cannot debug a executable linked by ld.lld with lldb debugger when using a pure LLVM MinGW toolchain on Windows.
I found that all executable linked by ld.lld must be debug with MSVC debugger.
There is the related code. https://github.com/microsoft/vscode-cmake-tools/blob/v1.10.5/src/debugger.ts#L162

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

@bobbrow
Copy link
Member

bobbrow commented Apr 19, 2022

I don't really have all the context behind that decision so I'd be wary about breaking a bunch of people by changing it. That said, I added support to skip over that logic in the linked pull request. When this goes in, you can use the following setting to skip this check:

cmake.debugConfig: {
  "MIMode": "lldb"
}

@bobbrow bobbrow added this to the On Deck milestone Apr 19, 2022
@bobbrow bobbrow linked a pull request Apr 19, 2022 that will close this issue
@bobbrow bobbrow modified the milestones: On Deck, 1.11.0 Apr 20, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jun 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug a bug in the product Feature: debug/launch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants