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

stuck when debugging c++ program on M1 Mac(Monterey) #9488

Closed
LimingFang opened this issue Jun 22, 2022 · 3 comments
Closed

stuck when debugging c++ program on M1 Mac(Monterey) #9488

LimingFang opened this issue Jun 22, 2022 · 3 comments

Comments

@LimingFang
Copy link

LimingFang commented Jun 22, 2022

Environment

  • OS and version: macOS Monterey 12.4
  • VS Code: 1.68.0
  • C/C++ extension: 1.11.0
  • OS and version of remote machine (if applicable): no
  • GDB / LLDB version: 13.0.1

Bug Summary and Steps to Reproduce

Bug Summary: When debugging some code(for example, leveldb test code), sometimes the debug can't go on.

Steps to reproduce:

  1. Clone leveldb and add main.cpp

image

4. Debug this executable, when entering DB::Open:

image

then I was stuck in `*dbptr = nullptr;` where there's 4 lldb-mi process and in the right panel(variable),there is a circle spinning.

Debugger Configurations

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "cppdbg",
      "request": "launch",
      "name": "Debug main test",
      "program": "${workspaceFolder}/build/main_test",
      "args": [],
      "MIMode": "lldb",
      "cwd": "${workspaceFolder}",
    }
  ]

Debugger Logs

log link

Other Extensions

No response

Additional Information

  • lldb-mi won't exit when stop debugging.
  • CodeLLDB extension works fine on my Mac.
@WardenGnaw
Copy link
Member

From the logs, it looks like the debugger is hanging on creating the variable edit.

-1034-var-create - - "edit" --thread 1 --frame 0

This would be an issue in lldb-mi project https://github.com/lldb-tools/lldb-mi/issues on why it is hanging on creating the VersionEdit edit variable.

@LimingFang
Copy link
Author

I have submitted an issue on lldb-mi repo.

@github-actions
Copy link

This issue has been closed because it is external or not applicable to the extension.

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

No branches or pull requests

2 participants