Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

debug javascript with VS 1

Status
Not open for further replies.

rotsey

Programmer
Nov 23, 2004
135
AU
Hi,

I am using VS 2003.

I have added script using RegisterClientScriptBlock at runtime.

HOw do I debug this javascript code with VS??

Thanks
rotsey
 
The best way I have found to debug javascript is to view the page in your browser, right click on the page and view source, and then hit ctrl-G on keyboard and enter the line that the error was on. Make sure you set word wrap off in notepad or whatever the view source is being edited in. If you don't, ctrl-G does nothing.

 
Have you tried searching google first?

The first result I found when I typed "debug javascript in vs.net" came up with the following article A quote from that article is:
The Running Documents window will appear docked on the right edge of the IDE. The name of the page, "WebForm1.aspx", will appear in the window. Double-click the page and the HTML rendered to the browser when the ASPX page was evaluated by the server will be shown in a code window on the left. The HTML rendered by the ASPX page can be seen by double-clicking the page in the Running Documents window.

The code provided by the Running Documents window is where a developer can set breakpoints and step through the code, just like in server-side code. Stop the project and bring up the form designer.

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Just as a quick note for anyone else viewing this thread, don't forget to uncheck "Disable Script Debugging" in Internet Explorer=>Tools=>Advanced Internet Options
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top