High-Performance Development - C#, VB, SQL, ASP.NET

Slogan Text

This article describes how to enable JavaScript debugging for Visual Studio.

  1. Start Internet Explorer.
  2. Select Tools\Internet Options.
  3. Select Advanced tab.
  4. Find Browsing section, uncheck Disable Script Debugging (Internet Explorer), click OK.
  5. Exit IE.
  6. Add "debugger" keyword to your JavaScript code. See sample below.
  7. Execute your ASP.NET application in debug mode.

function ComputeSum(n, m)
{
    debugger
    Sum = n + m;
    return Sum;
}

Tip #1: Borders

Set a border for the CSS box. This allows you to see the box, the location of the box to other boxes and the location of elements in the box with respect to the box boundaries.

.Header
{
    border: solid 1px;
}

When you're done debugging set the border width to 0px.

 

 

Tip #1: Borders

Set a border for the CSS box. This allows you to see the box, the location of the box to other boxes and the location of elements in the box with respect to the box boundaries.

.Header
{
    border: solid 1px;
}

When you're done debugging set the border width to 0px.