microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.53k stars 1.56k forks source link

Attaching a debugger to cpptools on Mac doesn't work and disconnecting triggers a "crash" message #9810

Open sean-mcmanus opened 2 years ago

sean-mcmanus commented 2 years ago

See https://github.com/microsoft/vscode-cpptools/wiki/Attaching-debugger-to-cpptools-or-cpptools%E2%80%90srv .

The steps don't work. It just shows the blue message below and then the yellow message (and crash message) after disconnecting: image and image

Previously there was some issue with debugging on Mac in regards to the handling of the stdin on the main thread, but that seems to have gotten fixed back in 1.2.0.

The workaround is to use

run the following in a terminal window to attach lldb: lldb -p Then run the following command in lldb to output all stacks: bt all

Seems like a debugger bug? I was using 1.12.3 (unreleased, although the debugger should be the same as 1.12.2).

WardenGnaw commented 1 year ago

Thank you for reporting this issue. We’ll let you know if we need more information to investigate it.