vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

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

Open sean-mcmanus opened this issue 2 years ago • 0 comments

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 <PID of process to debug> 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).

sean-mcmanus avatar Aug 29 '22 23:08 sean-mcmanus