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

Can't debug on macOS Catalina (LLDB) #1953

Closed
hardfist opened this issue Jul 1, 2020 · 4 comments
Closed

Can't debug on macOS Catalina (LLDB) #1953

hardfist opened this issue Jul 1, 2020 · 4 comments
Labels
wasmtime:debugging Issues related to debugging of JIT'ed code

Comments

@hardfist
Copy link

hardfist commented Jul 1, 2020

I following the instruction in this article https://hacks.mozilla.org/2019/09/debugging-webassembly-outside-of-the-browser/,
it works fine for gdb on macos and lldb on linux, but it does not works well for lldb on macos
I try the following ways, but all failed,

  • codesign lldb
  • build lldb using -DLLDB_USE_SYSTEM_DEBUGSERVER=ON
    can someone give me an example on how to debug on macOS using lldb
@abrown abrown added the wasmtime:debugging Issues related to debugging of JIT'ed code label Jul 1, 2020
@yurydelendik
Copy link
Collaborator

yurydelendik commented Jul 1, 2020

it works fine for gdb on macos and lldb on linux
can someone give me an example on how to debug on macOS using lldb

The only difference between linux and macos is default state of "plugin.jit-loader.gdb.enable" settings. You can add settings set plugin.jit-loader.gdb.enable on to ".lldbinit" or beginning of the lldb session. This setting was added in lldb version 9 (see e.g. brew's one). Other than that, linux and macosx behavior shall be almost identical.

@hardfist
Copy link
Author

hardfist commented Jul 2, 2020

it works fine for gdb on macos and lldb on linux
can someone give me an example on how to debug on macOS using lldb

The only difference between linux and macos is default state of "plugin.jit-loader.gdb.enable" settings. You can add settings set plugin.jit-loader.gdb.enable on to ".lldbinit" or beginning of the lldb session. This setting was added in lldb version 9 (see e.g. brew's one). Other than that, linux and macosx behavior shall be almost identical.

Thank you, It works now, but it seems not working in vscode when using codelldb plugin

@hardfist
Copy link
Author

hardfist commented Jul 2, 2020

oh, after setup initCommands , it works now

@yurydelendik
Copy link
Collaborator

Closing as resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasmtime:debugging Issues related to debugging of JIT'ed code
Projects
None yet
Development

No branches or pull requests

3 participants