Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can be the reasons for JavaScript breakpoint is not hit?

I set a breakpoint in a script block of a razor view.
VS2012 attaches to IE but breakpoint has yellow triangle with exclamation mark saying:

The breakpoint will not currently be hit. The code in the document is not loaded.

Script debugging is enabled in Internet Options of IE.

Have no idea what is wrong.

like image 758
Pavel Voronin Avatar asked Dec 06 '25 05:12

Pavel Voronin


1 Answers

I faced this problem too. After trying many codes and things take from different posts in Stackoverflow and others websites, they have not solve my problem. When i have take a look for @robert4 solution and go back in my javascript code, i saw one error and fixed it, by doing like that, i have finally solve may problem and can now get a breakpoint in my javascript document. For those who will face this type of problem, i think that the first thing to do it is to verify your js file code by code to see if there is no error before beginning to implement each of others solutions take from differents posts.

like image 75
El camerounian Avatar answered Dec 08 '25 19:12

El camerounian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!