javascript - How to set a breakpoint on an event? -
this question has answer here:
how force breakpoint in javascript code on event (i.e. on button click) ?
i using google chrome.
are there browser compatibility issues might come it?
set button click listener , call debugger;
example
$("#mybtn").click(function() { debugger; });
demo
resources on debugging in javascript
Comments
Post a Comment