No debugging or stepping through. I wanted to remove all the jquery ui javascript includes by dequeing the ‘events-manager’ script. This removed the javascript error but killed some other functionality as well. But that’s how I knew which file I needed to check.

Then it was just a matter of deleting blocks of code in the file and check if the error went away to find the responsible block.