Jump to content

I can't see error logs.


Lightnet
 Share

Recommended Posts

Hi,

Babylon only "hides" the errors when the user has the option to define an onError callback. if no onError callback is defined, the error will be "ignored".

When loading a scene for example, babylon wraps the entire loading process in a try - catch  - https://github.com/BabylonJS/Babylon.js/blob/master/src/Loading/babylon.sceneLoader.ts#L198 . Notice that if no onerror defined, nothing will really happen. Babylon will fail silently. You can either turn on chrome's "pause on exceptions", and tick the "pause on caught exceptions", which will be a lot of fun, OR set the onerror function when calling the load function.

Hope this helps (and I do hope it actually correlates to your problem).

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...