<p>I have a few scripts on a site I recently started maintaining. I get those Object Not Found errors in IE6 (which Firefox fails to report in its Error Console?). What's the best way to debug these- any good cross-browser-compatible IDEs, or javascript debugging libraries of some sort?</p>

[{'answer_id': 78919, 'author': 'William', 'author_id': 9193, 'author_profile': 'https://Stackoverflow.com/users/9193', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://www.getfirebug.com" rel="nofollow noreferrer">Firebug</a></p>\n\n<p>It\'s only for firefox but it should let you figure out what\'s happening on IE especially once you have the script line numbers.</p>\n'}, {'answer_id': 78929, 'author': 'mopoke', 'author_id': 14054, 'author_profile': 'https://Stackoverflow.com/users/14054', 'pm_score': 3, 'selected': True, 'text': '<p>There\'s no cross-browser JS debugger that I know of (because most browsers use different JS engines).</p>\n\n<p>For firefox, I\'d definitely recommend firebug (<a href="http://www.getfirebug.com" rel="nofollow noreferrer">http://www.getfirebug.com</a>)</p>\n\n<p>For IE, the best I\'ve found is Microsoft Script Debugger (<a href="http://www.microsoft.com/downloads/details.aspx?familyid=2f465be0-94fd-4569-b3c4-dffdf19ccd99&amp;displaylang=en" rel="nofollow noreferrer">http://www.microsoft.com/downloads/details.aspx?familyid=2f465be0-94fd-4569-b3c4-dffdf19ccd99&amp;displaylang=en</a>). If you have Office installed, you may also have Microsoft Script Editor installed. To use either of these, you need to turn on script debugging in IE. (uncheck Tools -> Internet Options -> Advanced -> Disable Script debugging).</p>\n'}, {'answer_id': 78930, 'author': 'dimarzionist', 'author_id': 10778, 'author_profile': 'https://Stackoverflow.com/users/10778', 'pm_score': 1, 'selected': False, 'text': "<ol>\n<li>You can use Visual Studio and enable debugging in browser</li>\n<li>You can install FireBug plugin for Firefox, it's really good!</li>\n<li>You can try to install IE8 beta 2 and use it in compatibility mode with built-in debugger.</li>\n</ol>\n\n<p>Also in any line of your JS code you can write </p>\n\n<pre><code>debugger;\n</code></pre>\n\n<p>and this will be threated as breakpoint for any of the debug tools you use.</p>\n\n<p>Cheers!</p>\n"}, {'answer_id': 78946, 'author': 'Svet', 'author_id': 8934, 'author_profile': 'https://Stackoverflow.com/users/8934', 'pm_score': 0, 'selected': False, 'text': '<p>You could use this tool apparently - <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&amp;displaylang=en" rel="nofollow noreferrer">Microsoft Script Debugger</a></p>\n\n<p>Personally I try to go through the code and figure out what\'s going on - it gives you the line number where it goes wrong right? </p>\n'}, {'answer_id': 78975, 'author': 'David Negron', 'author_id': 981, 'author_profile': 'https://Stackoverflow.com/users/981', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://www.aptana.com/studio" rel="nofollow noreferrer">Aptana Studio</a> provides JavaScript debugging for Firefox and IE</p>\n'}, {'answer_id': 79096, 'author': 'madcolor', 'author_id': 13954, 'author_profile': 'https://Stackoverflow.com/users/13954', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://www.getfirebug.com" rel="nofollow noreferrer">Firebug</a> is the best all around client-side debugger.  I frequently use it to debug CSS code as well as javascript.  It allows you to easily find offending areas of code. I especially like the ability to modify tag attributes in the firebug pane and see the effects immediately before committing.  Very useful for anyone designing websites.</p>\n'}, {'answer_id': 79364, 'author': 'Darren Newton', 'author_id': 12799, 'author_profile': 'https://Stackoverflow.com/users/12799', 'pm_score': 2, 'selected': False, 'text': '<p>You could also use <a href="http://getfirebug.com/lite.html" rel="nofollow noreferrer">Firebug Lite</a> - which will work in IE &amp; Opera. It\'s an external lib that will help you track down problems. It\'s sometimes more convenient than dealing with the MS Script Debugger.</p>\n'}, {'answer_id': 81388, 'author': 'Kristian J.', 'author_id': 4588, 'author_profile': 'https://Stackoverflow.com/users/4588', 'pm_score': 0, 'selected': False, 'text': '<p>To make the Microsoft Script Debugger more user friendly (and to add javascript error messages that actually are helpful to IE), I highly recommend <a href="http://www.my-debugbar.com/wiki/CompanionJS/HomePage" rel="nofollow noreferrer">Companion.JS</a>.</p>\n'}, {'answer_id': 81442, 'author': 'Tyler', 'author_id': 3561, 'author_profile': 'https://Stackoverflow.com/users/3561', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://getfirebug.com/" rel="nofollow noreferrer">Firebug</a> seems to be the most useful so far.  When a page is running on firebug, it can be very handy to log messages into firebug via javascript calls to <strong>console.log(\'your log message\');</strong> but don\'t execute that code in IE since the console object is only in scope when firebug is running.</p>\n\n<p>For IE, other folks have mentioned the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&amp;displaylang=en" rel="nofollow noreferrer">Script Debugger</a>.  Although it is not primarily for javascript debugging, it can be useful to also add the <a href="http://en.wikipedia.org/wiki/IE_Developer_Toolbar" rel="nofollow noreferrer">IE developer toolbar</a>, which allows you to easily and dynamically inspect the style and other properties of your page\'s DOM.</p>\n'}, {'answer_id': 81454, 'author': 'Glenn', 'author_id': 11814, 'author_profile': 'https://Stackoverflow.com/users/11814', 'pm_score': 0, 'selected': False, 'text': "<p>In response to mopoke, for IE6 you definitely want to use Visual Studio for debugging if you can get it. For all intents and purposes, the MS script debugger is useless. You're better off using some form of tracing (not alerts) than using the MS script debugger. Dojo Toolkit, for instance, provides a debug console for tracing, but you can write your own by dumping messages to a secondary window or div. </p>\n\n<p>The script debugger needlessly prompts you on each error in IE6 and even then doesn't give you enough state context to make it useful in a sufficiently complex JS app. Visual Studio is more tightly integrated and much friendlier. Just my experience.  </p>\n"}]
['https://Stackoverflow.com/questions/78909', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14563/']