Stream: git-wasmtime

Topic: wasmtime / Issue #1953 Can't debug on macOS Catalina (LLDB)


view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2020 at 00:37):

hardfist opened Issue #1953:

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,

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2020 at 00:39):

abrown labeled Issue #1953:

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,

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2020 at 13:12):

yurydelendik commented on Issue #1953:

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. Other than that, linux and macosx behavior shall be almost identical.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2020 at 13:14):

yurydelendik edited a comment on Issue #1953:

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.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 02 2020 at 09:23):

hardfist commented on Issue #1953:

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 https://github.com/vadimcn/vscode-lldb plugin

view this post on Zulip Wasmtime GitHub notifications bot (Jul 02 2020 at 09:24):

hardfist edited a comment on Issue #1953:

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

view this post on Zulip Wasmtime GitHub notifications bot (Jul 02 2020 at 09:50):

hardfist commented on Issue #1953:

oh, after setup initCommands , it works now

view this post on Zulip Wasmtime GitHub notifications bot (Jul 02 2020 at 15:01):

yurydelendik commented on Issue #1953:

Closing as resolved

view this post on Zulip Wasmtime GitHub notifications bot (Jul 02 2020 at 15:01):

yurydelendik closed Issue #1953:

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,


Last updated: Oct 23 2024 at 20:03 UTC