6 ms·
i feel like one important piece thats missing is a standardised debugging-API. The introduction of WebAssembly will probably lead to a larger percentage of peop
by LeanderK 10y ago
i feel like one important piece thats missing is a standardised debugging-API. The introduction of WebAssembly will probably lead to a larger percentage of people compiling a (completely different) language to something running in the browser will rise. We need solid tooling for that.
- kibwen 10y agoIIRC Firefox already implements the Chrome Debugging Protocol (https://developer.chrome.com/devtools/docs/debugger-protocol https://developer.chrome.com/devtools/docs/debugger-protocol), which e.g. would mean that it should be possible to use Firefox's debug tools to debug web pages in Chrome (and vice-versa). Would be nice to have some clarification on this though. EDIT: Some more clarification, apparently this is enabled by an official add-on (called "Valence") which is shipped by default on Firefox Developer Edition: https://developer.mozilla.org/en-US/docs/Tools/Valence https://developer.mozilla.org/en-US/docs/Tools/Valence
- LeanderK 10y agoi am not following this very closely and was not aware of this (Developed something in Chrome/Safari a few months ago and this bothered me. I needed a custom Webstorm-Extension). I think the push for Wasm would be perfect to sort this thing out and provide a real, standardised API.
- auchenberg 10y agoFirefox doesn't implement the Chrome Debugging Protocol, but has it's own (FDP). Valence is an protocol adapter that adapts CDP to FDP, so Firefox DevTools (using FDP) can be used with iOS (which uses WDP)
- stcredzero 10y agoIf there is some kind of advanced debugging platform, then this would also make the browser a premier platform as a development environment.
- s3th 10y agoWe're very interested in exploring this space. It's possible that this capability is exposed through an extension of sourcemaps [0]. Definitely curious to hear more ideas and feedback in this space. [0]: http://webassembly.org/docs/future-features/#source-maps-integration http://webassembly.org/docs/future-features/#source-maps-int...
- dekimir 10y agoBefore I left Google, I worked on this briefly and produced this PR: https://github.com/WebAssembly/design/pull/708 https://github.com/WebAssembly/design/pull/708 It summarizes the discussion so far between various stakeholders. I've since moved on to other things, and I don't know where the effort currently stands.
- auchenberg 10y agoHave you seen, http://remotedebug.org http://remotedebug.org? The initiative is moving forward.
- kruhft 10y agoSolid tooling and plenty of prior art, tooling and standards that exist for adding debugging info to binaries[1]. I wonder if this could be layered into the WASM binary format in some way. [1] DWARF2 et al.