I am debugging a large JavaScript code base where, at some point, the \"console\" variable gets nulled when refreshing the page.
Is there a way to set a watch on con
You can't touch the console object... never, ever. The only thing that can happen is that a console variable is declared in a scope/namespace, other than the global scope, hiding the global console. You can still access it using window.console, though. Other than that, the only things I can think of that cause this are:
consoleTo find out where you need to look in the code set conditional breakpoints and watch a couple of expressions, and use the pause on uncaught exceptions button