I want to debug java-script or j-query embedded in the same view of razor page in google chrome
@section Scripts
{
<script type="text/javascript">
$(document).ready(function ()
{
var myClass = new MyClass();
myClass.DoSomeStuff();
});
</script>
}
how to debug and put break point in google chrome. because i cannot find script in source tab?
Did you try to add the word debugger into your code ? maybe it can help you.
<script type="text/javascript">
$(document).ready(function ()
{
debugger
var myClass = new MyClass();
myClass.DoSomeStuff();
});
In chrome dev tools there is a debug tool.
Choose breaking points, like this:

Press on F5 to start the debug mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With