Wasmtime: Can't debug on macOS Catalina (LLDB)

Created on 1 Jul 2020  路  4Comments  路  Source: bytecodealliance/wasmtime

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
debugging

Most helpful comment

oh, after setup initCommands , it works now

All 4 comments

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.

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

oh, after setup initCommands , it works now

Closing as resolved

Was this page helpful?
0 / 5 - 0 ratings