Which browser are you testing on? It should work in dev versions of firefox
and chrome, but at least on firefox I know it didn't work until a few
months ago, and might not yet work on release.



On Fri, Apr 25, 2014 at 6:19 PM, <[email protected]> wrote:

> Is debugging from a C++ function possible through a web worker?  I'm not
> getting anything in the console with printf.
>
> On Friday, April 25, 2014 5:46:25 PM UTC-5, Alon Zakai wrote:
>
>> Calling cwrap works for me in a worker. Do you have a testcase showing
>> the problem you are hitting?
>>
>> - Alon
>>
>>
>>
>> On Fri, Apr 25, 2014 at 3:21 PM, <[email protected]> wrote:
>>
>>> I'm experimenting with creating a web worker from my javascript file
>>> compiled with emscripten in another Javascript file.
>>>
>>> It works until I try to use *Module.cwrap* in *onmessage* that I added
>>> to my emscripten Javascript file.  I'm getting this error with no line
>>> number.  I get this same error in Safari and Chrome.
>>> Uncaught ReferenceError: window is not defined
>>>
>>> --
>>> 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.
>

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