4 ms·
What's the debugging situation like for developing WASM apps? I'm doing a lot of TypeScript+WebGL work right now, and though TS is fairly nice, my use case requ
by cylon13 7y ago
What's the debugging situation like for developing WASM apps? I'm doing a lot of TypeScript+WebGL work right now, and though TS is fairly nice, my use case requires being aware of not allocating too many new objects frequently, and that kind of control would be easier in something like C++ or Rust. I've been thinking of hacking together a small test project with WASM+WebGL to see what it's like, but I get the sense it might still be more hassle than it's worth to use in production. Currently I can easily set breakpoints in my TS code, I can see how much memory is allocated by which functions, how much time is spent in each function, etc. very easily. If there's a way to do these kinds of things with WASM in another language, that would be fantastic.
- echeese 7y agoThe tools are still being worked on but the Chrome team made a pretty big step by adding DWARF support to the debugger: https://twitter.com/ChromeDevTools/status/1192803818024710145 https://twitter.com/ChromeDevTools/status/119280381802471014... EDIT: Here's an article from yesterday about this: https://developers.google.com/web/updates/2019/12/webassembly https://developers.google.com/web/updates/2019/12/webassembl...