Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Programming & debugging series: tutorial #3

Loading...

Sign in or sign up now!
4,470
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 8, 2007

We programmed a small program with an intentionally bug in it so we can use the debugger to find it and eventually correct it.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Top Comments

  • I'm surprised you didn't notice that your "fix" created a worse bug (program-crashing one)?

    i = always 1 on first run.

    if n = 0 on first run, abort immediately.

    sum = 0, i = 1.

    avg = sum / (i - 1).

    # division by zero!

    # avg = 0 / 0!!!

    :D

    Thank you, love your tutorials.

see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • Really nice, always wondered how to view this informations - Nice video!

  • Thanks a Lot !!!

  • So there is such a thing as Debugging information in a .exe! I can see now why they give you the choice to compile debug and release executables in an IDE.

    I discover many things thanks to you hakim.

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more