开发者

Script debugger not attaching in Razor view

开发者 https://www.devze.com 2023-01-30 17:38 出处:网络
I have the following script block being rendered by a Razor view, but the debugger line is simply ignored, in Chrome; in Firebug it works as expected.The alert is working fine.

I have the following script block being rendered by a Razor view, but the debugger line is simply ignored, in Chrome; in Firebug it works as expected. The alert is working fine.

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

Anyone have a suggestion why this is so?开发者_StackOverflow社区


Do you have script debugging enabled in Internet Options? It's worth double-checking.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消