Break point is not hitting in javascript file

I'm facing some trouble on break point in Visual Studio 2013 update2

What the issue is:

I'm having a place where the button has to Submit. On submitting of button, I need to call a java script function, later it should go to some function in c#. This is the work flow. Here, I kept a break point on a line in JS file, and C#. Now, on submitting, the break point hits the js line but it suddenly disappear and move to c# line.

What I tried is:

As soon as i got this error, i start to surf in google. After a long time i found the below things to resolve. But none helps me to come out of this issue.

  • I restarted My Visual Studio
  • I wrote 'debugger' in the place of breakpoint line.
  • I unchecked silverlight in solution properties window.
  • Added TabProcGrowth in Registry Editor.
  • I tested in IE8 and chrome. Nothing works.

    I updated my IE8 version to IE11 version in one of my friend's system. It's working fine there.

    What I want is:

    I want to able to check the place where i inserted break point in my Java Script file using VS2013 and IE8. Thanks in advance.

    Note: Break point is hitting but it's not standing for more than 2 or 3 seconds.


    Even you Can debug your Code in Chrome also please follow these steps and tell me the Outcome..

    1.Keep the 'debugger' to the function where you want to fire the Debug Point.

    2.Now open the Chrome and Press F12 (Developer Tools)

  • Click on "Sources"
  • Now try to open the Page where the java script function exists.. automatically debugging mode will be fired and you can see what actually happens, (Any Errors in script )


    Is your JS break point outside of the context of your AJAX request? If so, is the AJAX request firing before your break-pointed JS line?

    If so it may scan over the AJAX request and select your JS break-point... until the AJAX request (fired previously) is received by the C# class which then over-rides the previous break-point set inside VS?

    AJAX isn't synchronous, so it'll fire the request the continue procedural down the rest of the function, and deal with the result of the AJAX request when it's received.


  • First ensure there is no JavaScript related errors on the page
  • Ensure your AJAX call is not firing before hitting to breakpoint
  • Check your JavaScript related settings on your browser (according to you, this was working on your friend's machine)
  • 链接地址: http://www.djcxy.com/p/85848.html

    上一篇: 使用CSVHelper映射IEnumerable属性

    下一篇: 断点不在JavaScript文件中