开发者

No dynamic page is in script document when I debug my .aspx page

开发者 https://www.devze.com 2022-12-16 06:32 出处:网络
I\'m trying to debug JavaScript code in my .aspx page.I insert a breakpoint, and press F5 for debug开发者_如何学Cging, but there is no dynamic page created in script documents.

I'm trying to debug JavaScript code in my .aspx page. I insert a breakpoint, and press F5 for debug开发者_如何学Cging, but there is no dynamic page created in script documents.

Why does the ASP.NET development server not create the dynamic page? Any ideas?


One way to force the debugger is to add the debugger; command in your JavaScript code where you want the debugger to stop. Something like this:

<script>
function myFunction(){
  debugger;
  // do some stuff
}
</script>

The debugger will stop on the debugger; line and you can step through your JS code.

0

精彩评论

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