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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -