I think the built in devtools actually disable a lot of JIT optimizations
when you open the script in the debug tab. Unfortunately it doesn't tell
you this. You just get a massive slowdown if you click on a script in the
debug tab. I think one relevant bug is:
https://bugzilla.mozilla.org/show_bug.cgi?id=1000520 (there are others
too).
I've also noticed that asm.js validation fails if you have the devtools
open on pageload.
This happens on nightly too.
Thanks
Liam Wilson
On Thursday, October 23, 2014 8:15:00 AM UTC+1, msc wrote:
>
> It is still impossible to debug my Emscripten code in Firefox. Given
> that the prime developers of Emscripten work for Mozilla, I find this
> amazing.
>
> The built-in debugger claims there is only a single line of code in the
> generated .js file:
>
> (function(){ { return Module['canvas'].clientWidth; } })
>
> wc reports there are actually 355638 lines in the generate js file.
>
> If the built-in debugger is running when I load the page, the load never
> completes.
>
> With Firebug, if I set a breakpoint in the js code, the re-load never
> completes and it is not because the breakpoint is hit.
>
> With both it is ridiculously easy to make the browser unresponsive.
>
> Neither shows the original C/C++ source and I can't find a "use source
> map" option. There is a "Use Original Source option in the built-in
> debugger which is checked, but as you can see above it is showing me only
> JavaScript.
>
> I am using Firefox 33 on Windows 8.1 on a machine with 8.00GB and 3.4GHz
> i7 CPU. That ought to be sufficient...
>
> Will this ever be fixed? It makes working with Emscripten really difficult.
>
> Once again I have to resort to leaving skid marks (printfs).
>
> Filing bug reports on Firefox is difficult because I cannot provide
> original source and we'll need internal discussions about the acceptability
> of providing the JS at this point in the project.
>
> Regards
>
> -Mark
> --
> 注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合が有ります。正式なメール受信者では無い場合はメール複製、
> 再配信または情報の使用を固く禁じております。エラー、手違いでこのメールを受け取られましたら削除を行い配信者にご連絡をお願いいたし ます.
>
> NOTE: This electronic mail message may contain confidential and privileged
> information from HI Corporation. If you are not the intended recipient, any
> disclosure, photocopying, distribution or use of the contents of the
> received information is prohibited. If you have received this e-mail in
> error, please notify the sender immediately and permanently delete this
> message and all related copies.
>
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.