Another way to do this, if you don't want to wait 5 seconds, is just to use the "pause script execution" shortcut, which is cmd-\. It'll freeze the page on whatever line of JS was currently executing, and then you can inspect the problematic element like normal.