Debugging JavaScript in VS.NET for ASP.NET application

The following tip will explain how you can setup your JavaScript code to be debugged in VS.NET.

  • Create a file named something.js and then add all your JavaScript functions to this file.
  • Add the js file to your ASP.NET project.
  • Then in every ASP.NET page that will call one of those functions add the following line to the HEAD section of the page. <script lanaguage=“javascript“ src=“something.js“></script>
  • Before running the solution in debug mode set a break point in the .js file where you would like it to stop.
  • Now run the solution in debug mode and VS.NET will break at that point every time the application executes that code.
Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

One Response to Debugging JavaScript in VS.NET for ASP.NET application

  1. Unknown says:

    Hi,Do you need advertising displays, digital signages, mp4 advertisement players, SD card players and advertisement LCD displays? Please go Here:www.amberdigital.com.hk(Amberdigital).we have explored and developed the international market with professionalism. We have built a widespread marketing network, and set up a capable management team dedicated to provide beyond-expectation services to our customers.
    amberdigital Contact Us
    website:www.amberdigital.com.hk
    alibaba:amberdigital.en.alibaba.com[dhadbfjffjfaagf]

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 )

Google+ photo

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

Connecting to %s