Closed Thread
Results 1 to 4 of 4

Thread: What methods do you use to debug your code?

  1. #1
    relapse's Avatar
    relapse is offline Programming Expert
    Join Date
    Jul 2009
    Location
    Intrawebs
    Posts
    479
    Blog Entries
    2
    Rep Power
    0

    What methods do you use to debug your code?

    The code I see from people is often buggy as hell. How the hell is code so buggy? Do people not bugtest their software before release? How do you test your code for bugs? Do you use any third-party software like softice?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,494
    Blog Entries
    75
    Rep Power
    143

    Re: What methods do you use to debug your code?

    It depends a LOT on the type of program, and the language and tools available for it.

    Delphi has a very nice integrated debugger, so setting break points and watches can be very helpful.

    For small functions, I will do test cases, including trying to find the boundary conditions and test the behavior for them.

    I do debugging output statements on a regular basis.

    When processing large amounts of data, I use extensive exception handling and log errors to file with as many details as I can get.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: What methods do you use to debug your code?

    I typically break my programs down by function/class and test them individually while creating the program, then do an overall test of the program once it's compiled.

  5. #4
    Jordan Guest

    Re: What methods do you use to debug your code?

    One method for testing is Test Driven Development (TDD) although I don't use this method. Using Unit Testing also helps. Aside from that, running the program yourself and having users test it for bugs is vital because they will do things you don't expect or intend.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Classes and Methods... Pseudo Code
    By wolfman in forum General Programming
    Replies: 0
    Last Post: 10-19-2011, 12:40 AM
  2. Debug Code Blocks
    By Apprentice123 in forum C and C++
    Replies: 6
    Last Post: 07-28-2011, 06:00 PM
  3. C++ question: Debug Code
    By Corum in forum C and C++
    Replies: 1
    Last Post: 03-03-2011, 02:48 PM
  4. debug with code and app visible
    By ronhud in forum Pascal and Delphi
    Replies: 3
    Last Post: 10-02-2009, 09:19 AM
  5. DOS Debug
    By youwish in forum General Programming
    Replies: 2
    Last Post: 08-27-2008, 10:44 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts