I have an older vs2005 asp.net application and occasionally the javascript debugger will break 开发者_C百科in with the "Microsoft JScript runtime error: 'null' is null or not an object" popup with the options "Break" and "Continue".
The statement it breaks on is usually some piece of html that does not have any scripting, and clicking either button does nothing, the error keeps coming up until I stop the whole process.
What can I do to stop this from happening? It's very annoying.
Several reboots later it suddenly started showing the proper script error location, I have no clue why it's working properly now but I'll take it.
Check the "disable script debugging" in the configuration-panel of Internet Explorer. Assuming your are running Internet Explorer when you debug, of course.
On a side-note; has it occurred to you that it might be a good idea to fix this bug? :)
(source: davekarow.com)
精彩评论