<p>Currently, I don't really have a good method of debugging JavaScript in Internet&nbsp;Explorer and <a href="http://en.wikipedia.org/wiki/Safari_%28web_browser%29" rel="noreferrer">Safari</a>. In Firefox, you can use <a href="http://en.wikipedia.org/wiki/Firebug" rel="noreferrer">Firebug's</a> <a href="http://getfirebug.com/logging.html" rel="noreferrer">logging feature</a> and <a href="http://getfirebug.com/commandline.html" rel="noreferrer">command Line functions</a>. However, this doesn't help me when I move to other browsers.</p>

[{'answer_id': 7126, 'author': 'Yaakov Ellis', 'author_id': 51, 'author_profile': 'https://Stackoverflow.com/users/51', 'pm_score': 2, 'selected': False, 'text': '<p>A post on the IE Blog, <em><a href="http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx" rel="nofollow noreferrer">Scripting Debugging in Internet Explorer</a></em>, explains different options for script debugging in Internet&nbsp;Explorer. </p>\n\n<p>Here is the <a href="http://developer.apple.com/internet/safari/faq.html#anchor14" rel="nofollow noreferrer">Apple Developer FAQ</a> on debugging JavaScript in Safari.</p>\n'}, {'answer_id': 7128, 'author': 'Chris Hanson', 'author_id': 714, 'author_profile': 'https://Stackoverflow.com/users/714', 'pm_score': 1, 'selected': False, 'text': '<p>Safari 3.0 and 3.1 include the <a href="http://trac.webkit.org/wiki/Drosera" rel="nofollow noreferrer" title="Drosera">Drosera</a> JavaScript debugger, which you can enable on the Mac by following the instructions at that link.  There\'s also the Safari <a href="http://trac.webkit.org/wiki/Web%20Inspector" rel="nofollow noreferrer" title="Safari Web Inspector">Web Inspector</a>..</p>\n'}, {'answer_id': 7129, 'author': 'Dominic Cooney', 'author_id': 878, 'author_profile': 'https://Stackoverflow.com/users/878', 'pm_score': 5, 'selected': True, 'text': '<p>For Safari you need to enable the "Develop" menu via Preferences (in Safari 3.1; see <a href="http://developer.apple.com/internet/safari/faq.html#anchor14" rel="noreferrer">the entry in Apple\'s Safari development FAQ</a>) or via</p>\n\n<pre><code>$ defaults write com.apple.Safari IncludeDebugMenu 1\n</code></pre>\n\n<p>at the terminal in Mac OS X. Then from the Develop menu choose Show Web Inspector and click on the Console link. Your script can write to the console using window.console.log.</p>\n\n<p>For Internet Explorer, Visual Studio is really the best script debugger but the Microsoft Script Debugger is okay if you don\'t have Visual Studio. <a href="http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx" rel="noreferrer" title="Scripting Debugging in Internet Explorer">This post on the IE team blog</a> walks you through installing it and connecting to Internet Explorer.</p>\n\n<p>Internet Explorer 8 <a href="http://www.west-wind.com/weblog/posts/271352.aspx" rel="noreferrer">looks</a> like it will have a very fancy script debugger, so if you\'re feeling really adventurous you could install the Internet Explorer 8 beta and give that a whirl.</p>\n'}, {'answer_id': 7206, 'author': 'John', 'author_id': 33, 'author_profile': 'https://Stackoverflow.com/users/33', 'pm_score': 0, 'selected': False, 'text': '<p>There is now a <a href="http://getfirebug.com/lite.html" rel="nofollow noreferrer">Firebug Lite</a> that works on other browsers such as Internet&nbsp;Explorer, Safari and Opera built. It does have a limited set of commands and is not as fully featured as the version in Firefox.</p>\n\n<p>If you are using <a href="http://en.wikipedia.org/wiki/ASP.NET" rel="nofollow noreferrer">ASP.NET</a> in <a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_2008" rel="nofollow noreferrer">Visual&nbsp;Studio&nbsp;2008</a> will also debug JavaScript in Internet&nbsp;Explorer.</p>\n'}, {'answer_id': 7222, 'author': 'Justin Yost', 'author_id': 657, 'author_profile': 'https://Stackoverflow.com/users/657', 'pm_score': 3, 'selected': False, 'text': '<p><a href="http://getfirebug.com/lite.html" rel="noreferrer" title="Firebug Lite">This is the Firebug Lite</a> that @John was referring to that works on IE, Safari and Opera.</p>\n'}, {'answer_id': 7849, 'author': 'robaker', 'author_id': 190, 'author_profile': 'https://Stackoverflow.com/users/190', 'pm_score': 1, 'selected': False, 'text': "<p>Visual Studio 2005 has the Script Explorer (under the Debug > Windows menu). It shows a tree of all the scripted stuff that's currently debuggable. Previously I was breaking into the debugger via IE's View > Script Debugger menu, but I'm finding the Script Explorer is a quicker way to get to what I want.</p>\n"}, {'answer_id': 8697, 'author': 'olliej', 'author_id': 784, 'author_profile': 'https://Stackoverflow.com/users/784', 'pm_score': 0, 'selected': False, 'text': '<p>Safari 3.1 doesn\'t need any magical commandline preferences -- the Advanced tab of the preferences window has an enable develop menu checkbox.  That said if you can use the webkit nightlies (<a href="http://nightly.webkit.org" rel="nofollow noreferrer">http://nightly.webkit.org</a>), you\'re probably better off doing that as the developer tools are vastly improved, and you can more easily file bug reports requesting features that you want :D</p>\n'}, {'answer_id': 8709, 'author': 'Daniel Silveira', 'author_id': 1100, 'author_profile': 'https://Stackoverflow.com/users/1100', 'pm_score': 1, 'selected': False, 'text': '<p>The best method I\'ve used for debugging JavaScript in Internet Explorer is through the <strong>Microsoft Script Editor</strong>. The debugger is full featured and very easy to use.</p>\n<p>The article bellow teaches how to install the <strong>Microsoft Script Editor</strong> and configure it.</p>\n<p><a href="http://web.archive.org/web/20100522094920/http://www.jonathanboutelle.com:80/mt/archives/2006/01/howto_debug_jav.html" rel="nofollow noreferrer">HOW-TO: Debug JavaScript in Internet Explorer</a></p>\n<p>for Safari, sorry no answer...</p>\n'}, {'answer_id': 2575345, 'author': 'David W. Keith', 'author_id': 262133, 'author_profile': 'https://Stackoverflow.com/users/262133', 'pm_score': 0, 'selected': False, 'text': '<p>See the <a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/DebuggingYourWebsite/DebuggingYourWebsite.html#//apple_ref/doc/uid/TP40007874-CH8-SW2" rel="nofollow noreferrer">Debugging</a> chapter of the <a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/1Introduction/Introduction.html" rel="nofollow noreferrer">Safari User Guide for Web Developers</a> for full documentation of how to debug in Safari. (For the most part it is the same API as Firebug.)</p>\n\n<p>In IE you can use the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&amp;displaylang=en" rel="nofollow noreferrer">IE Dev Tools</a>, but I prefer <a href="http://getfirebug.com/firebuglite" rel="nofollow noreferrer">Firebug Lite</a> as others have mentioned.</p>\n'}]
['https://Stackoverflow.com/questions/7118', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/889/']