Debugging JavaScript

Filed in: Life Log, Web Development — March 22nd, 2004

advertisement

*phew* Just successfully removed few small smelly dirty nasty bugs in JavaScript form validation code~ Yeah! yeah! :D

How small are they? Well, as small as one character(e.g: ), })… Spend few hours to testing line by line just to discover that I type one character less here and there… :?

How careless I am! Blame to not enough sleep!

The bug in JavaScript caused the script doesn’t run without any error message or signal… Only after I caught all the bugs then I realised that I forget to enable script debugging feature in my browser!

How stupid I am! Blame to not enough sleep!

Debugging is nightmare to every programmer. Often debugging process cost more time and brain power to debug than to code. If you ask me, I rather write code for you and not help you on debugging. :P

Reminder to myself:

  • get enough sleep before coding
  • remember to enable script debugging feature in browser
  • Read also:

    • LcF
      No, not yet. :)
    • Anonymous
      Anyway have u ever integrate any SMS feature in any of ur application?
    • wazzup_leh
      yup! thx! :)
    • LcF
      ok. it should be all right now :)
    • wazzup_leh
      now im greeted by errors when im loading each page of tis site, sorry!
    • wazzup_leh
      thx, but i think it resulted in more errors... :P
    • LcF
      wazzup_leh: oh.. that is javascript added to resize the random picture thumbnail. Hmm.. I will remove it then. Thank you for comment. :)
    • wazzup_leh
      and tis is the offending line:
      "obj.style.height = document.frames(aID).document.body.scrollHeight; } }"
    • wazzup_leh
      hey lcf, how is it tat everytime i access ur main page, i am owes greeted by "Runtime Error
      (Access Is Denied) on Line 31"?
    blog comments powered by Disqus