javascript - Is there any way to force Internet Explorer to break on alert()? -


i'm trying debug error message in large , complicated frames based web/asp.net app using ie8 , visual studio 2010. specifically, getting "member not found" message box appears straightforward javascript alert(). unfortunately don't know in code problem happening, , fiddler2 wasn't in case.

my question is, using ie option, tool, or other approach, can ie break @ alert() call can debug it?

string search "member not found"

add 1 / 0; before line.

turn on break on errors.

(i assumed knew developer tool existed. hit f12 , navigate script tab)

edit:

thanks @dmitriynaumov

var aalert = window.alert; window.alert = function() {   aalert.apply(this, arguments);   1 / 0; } 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -