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

VS Code on Mac Debug Fails #177

Closed
jamesjuett opened this issue Feb 23, 2024 · 0 comments · Fixed by #178
Closed

VS Code on Mac Debug Fails #177

jamesjuett opened this issue Feb 23, 2024 · 0 comments · Fixed by #178

Comments

@jamesjuett
Copy link
Contributor

Especially on older Macs with an Intel chip or following an update, debugging in VS Code with CodeLLDB fails.

Evidently, the crux of the issue is that CodeLLDB includes a bundled debugserver, which is incompatible (or becomes incompatible after an update). vadimcn/codelldb#999

A potential fix is to delete that bundled file. Removing it results in fallback to a system version that works.

cd ~/.vscode/extensions/vadimcn.vscode-lldb-1.10.0/lldb/bin
rm debugserver

See vadimcn/codelldb#456 (reply in thread).

We should probably add this to the troubleshooting section.

  • Description of the problem (attempt to launch the debugger, it thinks a minute, then nothing happens... is that accurate?)
  • Recommended workaround (deleting debugserver). What's the best procedure for having students do this? (Possibly something like "open extensions folder" from the VS code command palette, then navigate to most recent codelldb, go to lldb/bin and delete it?)
  • How to verify it has fixed or how to undo? (I'm not sure this is necessary, if it was already broken.)

A prerequisite for this workaround is students having CLI tools installed via xcode-select --install, but we already have them do that. (Otherwise there wouldn't be a separate debugserver to fall back on.)

I'll also note that the issue that prompted the most recent switch to CodeLLDB rather than the microsoft C++ debugging extension is unfortunately still unresolved. Otherwise, we could consider not recommending CodeLLDB anymore.
microsoft/vscode-cpptools#7240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant