Solved

Debug javascript

Posted on 2012-03-12
3
369 Views
Last Modified: 2012-03-15
How to debug javascript in Visual Studio 2010?  I would like to debug in Visual Studio 2010,

Not in Browser.  I moved javascript code into an external Myscript.js file. I have created the breakpoints but  it does Not work--I cannot step thru javascript code

Thanks
0
Comment
Question by:niceguy971
3 Comments
 
LVL 5

Assisted Solution

by:Dobromir Yordanov
Dobromir Yordanov earned 250 total points
ID: 37712905
I'm not sure you can debug ANY javascript in Visual Studio (and frankly I don't know why you would want to do that with tools such as Developer Tools/Firebug) but I think this video is worth checking out.

P.S. You might also want to check out Firebug's JavaScript capabilities (And keep in mind any browser other than Firefox has Developer Tools buried somewhere in there which is exactly the same as Firebug)
0
 
LVL 19

Accepted Solution

by:
Rikin Shah earned 250 total points
ID: 37713013
Hi niceguy971,

You just need to add a statement "debugger;" before a statement you want to start debug from. Make sure you have disabled the script debugging in IE.

The debugger statement will call the available debuggers.


Regards,
Rikin.
0
 

Author Closing Comment

by:niceguy971
ID: 37727725
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question