After customizing script or triggers and when meet the the error message in the console window, we will found the error object and triggers. I suggest an idea to find it more easily.
After double clicking the error message, the error trigger window will be opened and mouse cursor is poining the error line.
Thanks.