I don't use debuggers much, but usually things seem to work ok for me, in
both firefox and chrome. Perhaps your codebase is very large and it hits
some limit in firefox? Also, which version of firefox are you on? Recent
versions have improved a lot in the devtools area. I am on nightly over
here.

Using source maps should work automatically.

In both cases, these sounds like bugs in the firefox debugger. I understand
that filing a bug on your codebase might not be simple, but perhaps you can
make a separate testcase somehow?

- Alon


On Thu, Oct 23, 2014 at 12:14 AM, Mark Callow <[email protected]>
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.
>

-- 
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.

Reply via email to