kripken / ammo.js

Direct port of the Bullet physics engine to JavaScript using Emscripten
Other
4.19k stars 559 forks source link

Debugging ammo.wasm.wasm using DWARF #405

Open bbird5490 opened 2 years ago

bbird5490 commented 2 years ago

Hi,

I'm tying to look debug ammo.wasm.wasm.

What I did thus far:

I don't see the C code as I expected in the Chrome debugger just the WebAssembly

Am I missing something?

Many thanks!

bbird5490 commented 2 years ago

I have now also installed the chrome plugin: https://goo.gle/wasm-debugging-extension

I think I'll need to set a "Path substitutions" using the extension. Anyone tried this for ammo.js?

qingwabote commented 1 year ago

Did you set CMAKE_BUILD_TYPE to Debug in cmake?

set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build Type")