javascript - Debugging Method in Chrome: Identify what line of code is executed after Onload event ended -
i have function in javascript. example:
function sample(){ var myid_signature_image = new image(); myid_signature_image.onload = function () { alert('two'); }; alert('one'); }
i put breakpoint in each line of function. one
being displayed first, , two
. afer onload
event, javascript function interfering code. how know line of code using google chrome developer tools
?
fire developer tools (ctrl + shift + i
) , under sources tab, put breakpoint @ alert('two');
line. carry out html actions thru browser, in case onload
needs refresh, , halt on breakpoint. here, press f10
(step on next function call) , tell lines executed next after onload
event.
Comments
Post a Comment