Lightnet Posted November 26, 2016 Share Posted November 26, 2016 Every time I get zero error on the console log and it pain to find the error. When I was debug on chrome I find nothing and scene disappear. Only to notice that babylon hide the errors that I need to find which lines give. Is there way to get the debug log show? Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 28, 2016 Share Posted November 28, 2016 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). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.