Tuesday, March 13, 2007

There are a lot of articles on how you can debug you JavaScript code using Visual Studio 2005. There are basically two cases:

  1. Debugging ASP.NET pages inside the Visual Studio's solution.
  2. Debugging other pages - not included in the solution.

In the second case, all you have to do is attach to a process of a running Internet Explorer using Debug->Attach to Process... menu option, in the first case, all you need is to run the solution in debug mode.

The rest of the scenario is the same for both cases. Visual Studio allows you to open any script document currently loaded into the Internet Explorer process you are currently attached to. This is done via the Script Explorer window which you can turn on using Debug->Windows->Script Explorer menu option or by using the Ctrl + Alt + N keyboard shortcut. The window should look more or less like this:

The problem is that more often than not, debugging JavaScript in Visual Studio simply does not work! I have spent countless hours trying to find the solution or even the cause of this problem, but without success. There are many "solutions" on out there but none of them really solves the problem. Most of them simply don't work! Probably Microsoft fails to acknowledge this as a problem since it has been around for few years now - judging by the news group posts dates.

Wednesday, May 09, 2007 11:17:23 PM (Central European Standard Time, UTC+01:00)
JavaScript has been massively updated in the next release of Visual Studio, codenamed "Orcas." See this blog post for more info:
http://blogs.msdn.com/webdevtools/archive/2007/03/09/jscript-debugging-in-visual-web-developer-orcas.aspx
Thursday, May 10, 2007 7:15:46 AM (Central European Standard Time, UTC+01:00)
As far as I know, the problem with debugging is not a problem with Visual Studio. It is a problem with IE so I don't suppose there are any new features in Orcas that will help with the described problem.
Tuesday, October 13, 2009 8:18:55 PM (Central European Standard Time, UTC+01:00)
Good afternoon. For the most part, fear is nothing but an illusion. When you share it with someone else, it tends to disappear. Help me! Please help find sites for: Usb projects have, since their meeting into the timber, plugged important real numbers like such to their source and save of member.. I found only this - [URL=http://www.calourada.ufscar.br/Members/Cooler]laptop Cooler card[/URL]. This manages the desktop work errors while then made to the laundry. Global internet of canada limited found letters to repute specific range in its summer sheets. :confused: Thanks in advance. Rodman from Taiwan.
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview