How do you handle debugging when using Prototype.js

In many cases, when my javascript code of my prototype.js gets an error, I do not receive error notifications, line numbers, etc. I usually end the tracking through my code with an alert instruction until I find where it dies. Is there a better way to track these errors?

+3
source share
2 answers

It depends on the browser, but there are some very good ways to handle errors. If you are using firefox, you can install FireBug and then use:

console.log('like an alert but in the firebug window');

This is much faster than clicking ok, then ok, then ok ...

http://getfirebug.com/

Firebug JS , . , !

0

Firebug...

Chrome. , Firefox , Prototype.js, Chrome . , Google Mozilla.

0

Source: https://habr.com/ru/post/1764437/


All Articles