I’m building an ASP.NET MVC3 website. I have some javascript in my .cshtml file:
<div>hello!</div>
<script type="text/javascript">
$(document).ready(function () { alert("ready!"); })
</script>
Google Chrome’s built-in debugger doesn’t see this javascript snippet, so I can’t debug it.
How can I set a breakpoint in this javascript snippet in Google Chrome’s built-in debugger?
Weird, works great for me:
Scriptstab:9038in my screenshot below)You might also consider FireBug as an alternative.