Solved

Debug javascript

Posted on 2012-03-12
3
373 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…

737 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