Break points in javascript

Hi, I am using Visual Studio 2010 and I need to debug javascript. If I put breakpoint in .js file, when that breakpoint is hit, debugger pauses execution and I can continue statement by statement.

But if I put that breakpoint inside script tag directly in page, debugger doesn`t stop on that breakpoint. If I put that breakpoint in the same line but not in source page (.aspx), but into that dynamically created, it works.

Problem looks to me that it doesn`t take breakpoints from original file, so I need to put breakpoints into that dynamic file each time I press F5.

Can I fix it?


It works in ASP.NET WebForms but not in ASP.NET MVC :(

I always set my breakpoints in Firefox with Firebug. Here is a similar thread: 

Leave a Reply