How to setup gdb with Rust and stdweb?

Hey,

Please help. I found instructions on setting up gdb with rust binary, not lib. I am using stdweb to do interaction between javascript and rust.
I am unable to find any example/instruction on how to setup gdb with lib build from rust/stdweb.

Thanks
G

You won’t be able to do that.
stdweb will compile your Rust code to WebAssembly (or asm.js, which is just JavaScript). It then runs exclusively in the browser. Use the browser’s debugger to inspect your code.

1 Like

Thanks. Good to know so I can look for the alternative.
I am thinking commenting out stdweb related code and use gdb to debug only other part of code.

Regards
G