Based on details about error you can easily find location of error and fix it. But it is most harder to find error in case when your browser display no errors and application doesn’t work as we expect. What to do in those cases?
var someObject = myObject; alert(someObject.toSource());
With toSource() function you can see more detailed your variable just like print_r() function in PHP.
You should use alert often in function, to see exactly what is status of your code execution and variable values.
If you have any comment about this post, please make a comment. I hop this post will be useful to you.
No related posts.