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.
精彩评论