Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 383
  • Last Modified:

Debug javascript

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
niceguy971
Asked:
niceguy971
2 Solutions
 
Dobromir YordanovCommented:
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
 
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
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
 
niceguy971Author Commented:
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now