Debugging the javascript using the “Debugger” keyword
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,
- Open up IE and select the “Tools->Options” menu
- Uncheck the disable script debugging(Internet Explorer)
- Uncheck the disale script debugging(Other)
- 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