Click below for Step by Step and Interview Q & A (dotnetinter) wrote,
Click below for Step by Step and Interview Q & A

How to debug javascript using visual studio? (ASP.NET Javascript interview questions with answers)

To debug javascript we need to enter the debugger keyword from the point where we want visual studio to start debugging. For instance in the below method “SomeEvent” we want visual studio to start debugging when the method starts executing , so we have inserted  the “debugger” keyword just at the start of the method.

debug 3

Now hit the visual studio debug button and ensure that the application runs with internet explorer. If you run the code in other explorer visual studio debugging will not start.

                                                  debug 1                                  

Now when the event fires you should see the visual studio debugger debugging your javascript code from the point where you have inserted the “debugger” keyword.

                          debug 2

We are thankful to to provide this ASP.NET Javascript interview question with answer.

Below is a nice ASP.NET interview question video on throw VS  throw ex.

Tags: javascript interview questions, csharp interview questions, information technology questions, javascript debugging interview questions, programming interview questions, visual studio debugging javascript

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded