Compile lldb to wasm


For the purpose of debugging wasm code, I am investigating how to compile lldb to wasm module.

I am starting with use emconfigure (in emscripten) but it broke so many references, have not been able to generate cmake yet.

Has anyone done it before? Do you have any docs/ leads related the build systems or the minimal lldb build that I could start with?

Any leads/ideas would be highly appreciated.