Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

  1. I restarted My Visual Studio
  2. I wrote 'debugger' in the place of breakpoint line.
  3. I unchecked silverlight in solution properties window.
  4. 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.

like image 597
gkrishy Avatar asked Jun 17 '15 11:06

gkrishy


1 Answers

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)

  1. 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 )

like image 129
Tummala Krishna Kishore Avatar answered Sep 28 '22 21:09

Tummala Krishna Kishore