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

http://jsfiddle.net/hbch5/

resources on debugging in javascript


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -