asp.net core mvc Javascript break point not hitting in debug mode

Viewed 225

The break ppint is on $('FromDate').datetimepicker

enter image description here

 $(document).ready(function() {
    $('#FromDate').datetimepicker({ 
        format: 'DD/MM/YYYY', 
        minDate: moment().millisecond(0).second(0).minute(0).hour(0),
        clear : false 
    });
});
1 Answers

Visual Studio .NET debugger doesn't stop on breakpoints when you debug ASP.NET pages




For JavaScript debug, I suggest you could try using browser debug tool(F12).It is more flexible.


For example

Debugging js in Google Chrome

1.Press F12 to open Dev tools control panel.
2.Open Source Tab and select the file where you code is from directory.
3.Add Breakpoint to the line you need to debug.
4.Press F5 to refresh your page.

enter image description here

Related