Script debugger not connecting in Razor mode

I have the following script block displayed by the Razor view, but the string is debuggersimply ignored in Chrome; in Firebug it works as expected. alertworks fine.

<script type="text/javascript">
    function provinceChanged(e) {
        debugger;     
        var url = "/Address/ListCities";
        alert(url);
    }
</script>

Anyone have a suggestion why this is so?

+3
source share
1 answer

Do you have the debug script function enabled in your internet settings? It’s worth checking twice.

This has nothing to do with how your page was made ...

0
source

Source: https://habr.com/ru/post/1780669/


All Articles