-
Hi, Second, is that possible to generate better error messages? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
@amunhoz I sure Try/catch will help you faster and better |
Beta Was this translation helpful? Give feedback.
-
The problem is, somethimes there is a lot of code in the try/catch, and when an error occurs, i have to put breakpoints in the entire code to discover where the problem is. For now, i've made a wrapper to replace the original functions with other ones to give me more info about the error and its location. But i think this can be implemented in the package. |
Beta Was this translation helpful? Give feedback.
-
Hello, I don't follow, could you give an example? You shouldn't get "errors" at all, you only have callbacks and what they provide. Status never change unless a callback was called to signal that change. |
Beta Was this translation helpful? Give feedback.
-
Sorry, i think this explains better:
The error instance will have two main informations: message:"console.logx is not a function" The stack information help to find where the exception was throwed. |
Beta Was this translation helpful? Give feedback.
-
I have a very hard time understanding how things could be any more clear:
This is the stack trace. It is very shallow because, well, the stack is this shallow at this particular point. |
Beta Was this translation helpful? Give feedback.
-
Your example show how it supose to be... |
Beta Was this translation helpful? Give feedback.
-
To make sure I wasn't wrong on this, I made yet another test:
This clearly shows the stack trace (which at this point is only 1 deep) and a clear V8 exception. |
Beta Was this translation helpful? Give feedback.
I have a very hard time understanding how things could be any more clear:
This is the stack trace. It is very shallow because, well, the stack is this shallow at this particular point.