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
Browser-implemented functions can't be null-ed! Technically speaking.
If window.console.log funcion was assigned null, then just restore it deleting it!
delete console.log
That will do the job :)
EDIT: That's not an answer to your main question, but I think your question is comming from you searching a way to debug, so this answer basically skips the need to detect var changes.