Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Emscripten - how to see JS console exceptions?

$
0
0

@jahyadotnet wrote:

I have compiled my project using:

emmake make

Compiles OK - I then run it using either of these:

emrun --browser chrome bin/myproject.html
emrun --browser firefox bin/myproject.html

In the javascript console I get this message:

Uncaught 38782240 - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.

But I don't know what to do with it. It seems this flag is for when you are compiling using emcc, not make.

Do I have to do something like this with it? (this fails on the first include in the file)

emcc -s DISABLE_EXCEPTION_CATCHING=0 src/ofApp.cpp

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles