[Javascript] How to insert line number automatically for debug Posted by Keep Growing on 凌晨4:06 in javascript / No comments add “Line # 999 \n” to each line in the script that you want numbered, e.g., alert ( “Line # 999 \n”); run the perl below: cat my_js.js | perl -ane “{ s/Line # \d+ /Line # _;}” > C_my_js.js; mv C_my_js.js my_js.js Reference: LINE equivalent in Javascript Share This: Facebook Twitter Google+ Stumble Digg 以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook
0 意見:
張貼留言