Emscripten Debugging in Chrome Dev Tool is loading a lot of emscripten files which is make the debugging very slow #21711
Replies: 7 comments
-
@pfaffe do you know what this means? Is it a problem? |
Beta Was this translation helpful? Give feedback.
-
Large numbers of sources are not generally a problem in and of itself, but if the debug info is huge that can slow things down. Can you clarify what precisely is becoming slow? |
Beta Was this translation helpful? Give feedback.
-
Hi @pfaffe I've taken note of the guidance provided above. Before delving further, let me provide some essential details about my application: The application is statically built using Emscripten, resulting in a single large WASM file named TerraExplorerApp.Emscripten.wasm. Additionally, it's configured to utilize 60 worker threads. In terms of file size: Debug mode: Release mode: Regarding the debugging issues:
The app debugging is conducted at http://localhost:6931/ (Server created by Emscripten emrun.py). None of the aforementioned problems occur when working on a real server, but C++ debugging outside of http://localhost/ isn't feasible. Here's a link to the App Debug: App Debug Link |
Beta Was this translation helpful? Give feedback.
-
To improve load times you can try building with In what way does devtools crash exactly? |
Beta Was this translation helpful? Give feedback.
-
It seems that the loading is faster with |
Beta Was this translation helpful? Give feedback.
-
Do the crashes occur in any specific situation? I see for example you're opening the wasm module itself in the screenshot above, which would consume quite a bit of memory. It's hard to guess what's going on. Do you have a way we could reproduce the problems? |
Beta Was this translation helpful? Give feedback.
-
sometimes, opening the wasm module is done automatically by the DevTool when I try to do - Debug Step In in some c++ file. |
Beta Was this translation helpful? Give feedback.
-
Debugging with
-g
cause to loading a lot of Emscripten files in the Chrome Dev Tool which might cause to debugging to be very slow.Is there a way to ignore them ?
Beta Was this translation helpful? Give feedback.
All reactions