Skip to content

Debugging the javascript using the “Debugger” keyword

January 2, 2010

Dotnetnuke developers usually write custom javascripts to meet their project needs or need to debug the pre-existing ones, they usually find it difficult to debug javascript. I came across a very simple way to get the visual studio IDE to debug javascript.It is using the “debugger;” keyword. Before using this there are a couple of things that you will have to do,

  1. Open up IE and select the “Tools->Options” menu
  2. Uncheck the disable script debugging(Internet Explorer)
  3. Uncheck the disale script debugging(Other)
  4. All the you have to do now is to place the “debugger;” keyword in the javascript at the place where you want the javascript to break

With the above mentioned steps you will be able to break into the code and the control will be returned to the visual studio IDE.

Advertisement
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.