Debugging JavaScript in IE7

Debugging JavaScript in IE7

Web Development Helper is very good.

The IE Dev Toolbar is often helpful, but unfortunately doesn't do script debugging

Debugging JavaScript in IE

Several options:

  • Open the IE developer tools (by hitting F12 while in the browser), and use the provided JavaScript debugger. To get to know it better, see the MSDN reference on using the JavaScript debugger (and a newer reference).
  • Install Debug Bar, which provides an extended feature-set to the built-in developer tools.
  • Install IE Tester, which emulates various IE instances (versions), and use its built-in Debug Bar. With that approach, you can also pin-point version-specific problems.

Javascript debugging for IE6/7

You can use Visual Studio for that: http://www.codeproject.com/Articles/18921/Using-Visual-Studio-to-Debug-JavaScript-in-IE
Btw, Microsoft Script Debugger is still available for download : http://www.microsoft.com/download/en/details.aspx?id=22185 and it should still work fine for debugging script in Microsoft browsers.

How to do Internet Explorer 7 testing and javascript debugging on windows 7?

As said above ie9 will emulate ie7 - but it is not exactly ie7, i have seen numerous instances of real ie7 behaving differently to ie9. What i do for this is have a virtual pc image of vista with ie7 on it.

See here

Debug JavaScript on a remote site using Visual Studio 2008 / IE7

using vs web developer express i created a project for the URL first. the list of steps i used follow.

only diff for your case i think would be instead of F5, choose from the menu "debug -> step into" and you'll enter the debugger straight away.

  • file > new web site...
  • use the 'empty web site' template, with location being the filesystem, and just leave the filename as the default which should be in your 'my documents' dir inside the newly created dir for 'visual studio 2008'.
  • then on the right panel for 'solution explorer' right click on the dir entry and choose 'browse with...'.
  • choose internet explorer in the list and 'set as default' (this will only mean the 'solution' will use IE as the default, not the OS).
  • click cancel coz you don't wanna do anything yet (if you browse it'll open a kind of cover page in your OS default browser).
  • right click again on the dir entry and click 'start options'.
  • choose 'start URL' and put in the address of the website you wanna debug. click OK to finish.
  • then in the menu click the 'start debugging' icon, or in the menu under debug, or F5.
  • if this is the first time then says it needs to make a 'web.config' file in which debugging is enabled. just create a new one, no prob.
  • IE will open on your URL in debug mode.

How to make JavaScript break into IE built-in debugger (F12) rather than Visual Studio debugger?

Suggest to disable the Just-In-Time debugger for Script; if you do not want to use it for.

See the below reference on how to enable/disable JIT Debugger:

Enable/Disable Just-In-Time Debugging

I am using IE8, there i need to start the script debugging by pressing 'Start Debugging' button or F5 under 'Script' tab in Developer Tools.

See the attached screenshot:

Developer Tools Screenshot

What's the best way to debug Javascript on IE?

Depends on what tools you have available to you.

If you have a copy of Visual Studio, I'd use the Visual Studio debugger. It works pretty well. You'll need to try following the instructions in that link if you don't have a full copy of Visual Studio, otherwise it's built in to the IDE and is pretty simple to use.

Another option is Firebug Lite, which is pretty good for most situations, but you need to add a script reference to every page you want to debug in order for it to work.

How to use the Developer Tools in IE 7?

Add

debugger;

to the script where you want to debug. It will also prompt the Visual Studio to handle from there if it is installed

example

<script type="text/javascript">
debugger;
alert("Hello World");
</script>

For debugging script in IE8 developer tool bar

http://msdn.microsoft.com/en-us/library/dd565628(VS.85).aspx#dbugjscript

For IE7 sepecif JavaScript debugging you can also refer to this answer
Debugging JavaScript in IE7

Debugging javascript 'unspecified error' in IE7

IE7 debugger is worth nothing.

But there is a nice tool Internet Explorer Developer Toolbar and Web Development Helper

And you should read stackoverflow / Debugging JavaScript in IE7 too.



Related Topics



Leave a reply



Submit