Solved

Debug javascript

Posted on 2012-03-12
3
357 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
daypilot scheduler 3 26
Deploying to Azure 3 27
how can i Return this word's max repeat count? 2 15
Scroll 5 news at a time. 4 25
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now