Window Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 23 March 2008

JavaScript Debugging in Visual Studio 2005

Posted on 20:12 by Unknown

We all know that "JavaScript Debugging" is one of the hottest feature of newly launched Visual Studio 2008 by Microsoft. In that we can add breakpoint and check the values in JavaScript in watch window at runtime also. Also Microsoft has added Intellisense for JavaScript. So indirectly..Life is much more simple now..Thanks to Microsoft for that..!! ;-)

Well..But what about Visual Studio 2005??..I am still using it..rather me and many of my friends like you people are using it.

Just we need to do set-reset some settings and we can also Debug JavaScript in Visual Studio 2005. I know very well that its not full fledge Debugging, but atleast you can see that its going to debug mode in your script and you can check values by selecting them and pressing Shift+F9 we usually do.

For this, First step is Start Internet Explorer, Go to "Tools" Menu, Click on "Internet Options", A wizard kind of Window will get open in front of you, Here you will see some 6-7 Tabs. Click on "Advance" Tab which is in last position. On clicking Advance Tab you will find some Tree like Categorized options with CheckBox to select-deselect it.

So under "Browsing" Category you can see on option check by default as "Disable Script Debugging (Internet Explorer)" , Uncheck this option if it is checked (Generally it is a checked option by default)

Now move to Visual Studio and just add a word "debugger;" in your script and run that..you done with it, Once that Javascript will get fire, you will automatically get thrown in HTML Code window where you have written JavaScript.

Function HelloWorld()

{

    debugger;

    alert('Hello User !');

    ....

}

You can see that you can break through it with F10 step by step and watch values of variables if any inside it. I know though we are not able to add breakpoint physically in Visual Studio 2005, but this may help a lot.

Being a Web Developer by profession, I know how much pain my developers friend they suffer from each day just because they can't debug script like they debug their VB or C# code.

This one I tested on Internet Explorer 7 and its working well, As I don't have IE6 and I don't have SP for Vista so indirectly I don't have IE8 too..So I will try to check out this on both of them soon and will get back to you..between I am also trying hard to run this on Mozilla ;)

Vikram.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • First Windows Phone 7 update February 2011 - Small update but Big start
    After tons of rumors and set of predictions on Windows Phone 7 all over Internet, Microsoft came up with first Windows Phone 7 minor update ...
  • The little Story of “I Unlock Joy” event by Microsoft and Pune User Group
      This post is about recent “I Unlock Joy” event happened in Pune which was conducted by Microsoft and Pune User Group. Little History : ...
  • Silverlight On Mobile : Windows Phone 7 Splash Screen and Customization
    After talking about 3D capabilities on Windows Phone 7 using Silverlight in last article , Now I am moving ahead with small but equally impo...
  • Silverlight 5 : Platform Invoke (PInvoke) in Silverlight
      Two days back Microsoft announced availability of Silverlight 5 RC,I encourage you to download bits from here , My friend Pete Brown alr...
  • Introduction to Speech Capabilities in Windows Phone 8 – Part 1
    After a long..I am writing blog, I hope and I wish I will resume blogging like I use to in past. Lots of things happened in past few months....
  • MCTS : Microsoft Silverlight 4 Development Exam Guide (70-506) by Packt Publishing
      Hello, After a long time I got chance to come back here.I will soon resume blogging in month of August. Last 4-5 months were horrible due...
  • Introduction to Speech Capabilities in Windows Phone 8 – Part 2
    Hope you enjoyed my last article on Speech Capability in Windows Phone 8, Today I am posting another part or you can say little extension t...
  • Silverlight 3 : Insert & Update Data using WCF Service with DataForm and DataGrid
    In my Lap around Silverlight 3 series, I have written a separate article on DataForm in Silverlight 3, This article is a basic extension to ...
  • Mango : Using DeviceStatus in Windows Phone 7.1
    First of all “Thank You” for your wonderful response and comments on my last article on Silverlight Vs HTML5 ,I hope you like the points I ...
  • Silverlight, HTML5 & Windows 8 : Where we are heading to ?
    This is not the post or yet another post on most happening debate of Silverlight and HTML5, This is just a visit to all of them to realize t...

Blog Archive

  • ►  2013 (4)
    • ►  August (1)
    • ►  April (3)
  • ►  2012 (4)
    • ►  July (1)
    • ►  March (2)
    • ►  January (1)
  • ►  2011 (24)
    • ►  December (1)
    • ►  September (4)
    • ►  August (2)
    • ►  July (1)
    • ►  June (4)
    • ►  May (3)
    • ►  April (3)
    • ►  March (1)
    • ►  February (4)
    • ►  January (1)
  • ►  2010 (21)
    • ►  December (1)
    • ►  November (2)
    • ►  October (3)
    • ►  September (2)
    • ►  August (4)
    • ►  July (5)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2009 (49)
    • ►  December (1)
    • ►  November (5)
    • ►  October (2)
    • ►  September (1)
    • ►  August (5)
    • ►  July (5)
    • ►  June (1)
    • ►  May (5)
    • ►  April (5)
    • ►  March (9)
    • ►  February (4)
    • ►  January (6)
  • ▼  2008 (43)
    • ►  December (3)
    • ►  November (9)
    • ►  October (7)
    • ►  September (4)
    • ►  August (2)
    • ►  July (3)
    • ►  June (4)
    • ►  May (3)
    • ▼  March (3)
      • JavaScript Debugging in Visual Studio 2005
      • Simple LINQ Demo
      • Implementing Ajax : With UpdateProgress
    • ►  February (5)
Powered by Blogger.

About Me

Unknown
View my complete profile