> Emscripten does support source maps, see emcc -g4. Awesome! I'm going to try it asap.
On Tue, Mar 4, 2014 at 9:44 PM, Alon Zakai <[email protected]> wrote: > Emscripten does support source maps, see emcc -g4. > > - Alon > > > > On Tue, Mar 4, 2014 at 7:47 PM, Mark Hahn <[email protected]> wrote: > >> Yes, the chrome inspector (which is similar to the old one in >> webkit/safari). >> >> > an issue with the compiled code seems more likely. >> >> I don't see how any particular javascript code could cause this problem. >> It's either valid javascript or not. No matter what emscripten generates >> you can't jump into the middle of a function. >> >> The only time I've seen this kind of problem is when there are source-map >> files that don't match the javascript. Emscripten doesn't support >> source-maps, does it? That would be awesome. Make sure the source-maps >> option is off in chrome. >> >> I have no idea what could cause your problem. >> >> >> >> On Tue, Mar 4, 2014 at 7:23 PM, Mark Callow >> <[email protected]>wrote: >> >>> On 2014/03/05 12:11, Mark Hahn wrote: >>> >>> >>> On Tue, Mar 4, 2014 at 6:12 PM, Mark Callow >>> <[email protected]>wrote: >>> >>>> Can you step through the code? >>> >>> >>> > Can you step through the code? >>> >>> Yes, I have no problem. You might be confused by the way the code >>> uses switch (case) statements. In many functions each C statement is one >>> case and it loops back to the switch over and over. At the end of each C >>> statement (case) you see something like `label = 5; continue;'. The good >>> news is that each JS line has the file name and line number of the C source. >>> >>> Thanks but no I am not. I am aware of the use of switch statements. >>> The wild jumps I see are not following the switch statement and include >>> jumps into other unrelated functions. It looks to me like the debugger >>> having a problem tracking the code execution but since it is happening in 2 >>> different debuggers, an issue with the compiled code seems more likely. >>> >>> When you say "Chrome Inspector" you are talking about the debugger built >>> into Chrome, right? >>> >>> 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 a topic in the >>> Google Groups "emscripten-discuss" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/emscripten-discuss/5iUdgtkUWaE/unsubscribe >>> . >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- >> 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/groups/opt_out. >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "emscripten-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/emscripten-discuss/5iUdgtkUWaE/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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/groups/opt_out.
