Stream: jco

Topic: Does JCO support opcode tracing


view this post on Zulip Mirror Mystic (Nov 28 2023 at 23:24):

Hi, what if I wanted to create a trace for every opcode that was run during an execution, does JCO support that? maybe I could use some debuger interface or something? :pray:

view this post on Zulip Guy Bedford (Nov 28 2023 at 23:37):

@Mirror Mystic you can use the --tracing option for this

view this post on Zulip Guy Bedford (Nov 28 2023 at 23:38):

that will log all imported function calls for a given component in its transpiled output

view this post on Zulip Guy Bedford (Nov 28 2023 at 23:38):

which for eg WASI corresponds to all the WASI operations performed

view this post on Zulip Mirror Mystic (Nov 28 2023 at 23:50):

yeah, I'm looking for something deeper then that, a trace for every opcode

view this post on Zulip Guy Bedford (Nov 29 2023 at 00:00):

yeah that would be more engine-level debugging I think

view this post on Zulip Guy Bedford (Nov 29 2023 at 00:01):

the Node.js or browser Wasm inspector should give you the same info you need here though for the most part against the core Wasm being executed

view this post on Zulip Mirror Mystic (Nov 29 2023 at 00:11):

sorry, i didn't get that last part


Last updated: Dec 23 2024 at 12:05 UTC