Re: Debug JavaScript for Developer


特種兵
 


  I use alert debug my javascript
  call this file in page when you need
  please reference, hope to help you

debug.js:
window.onerror = showerror;
function showerror(msg, url, line, column, rerr)
{
 alert('Error: ' + msg + ' Line: ' + line + ' character: ' + column + ' url ' + url + ' ' + rerr);
 window.onerror=null;  
 return true;  
}

thank you for much
Logo Kuo from Taiwan
Oleksandr Gryshchenko 於 2018/2/15 上午 06:08 寫道:

Hi all!
I am also interested in this issue.
Please write here if someone managed to find a solution.
Thank you!

Join nvda@nvda.groups.io to automatically receive all group messages.