DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Automate Your "Cut It In Half" Debugging Sessions  (Read 7,475 times)

tinjaw

  • I'm so glad breakbeat techno isn't an illegal drug
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Military Service Badge - US Army
    • Linux User
Automate Your "Cut It In Half" Debugging Sessions
« on: October 04, 2007, 05:34 PM »
We all know you sometime have to just cut stuff in half and see if the bug goes away. If it doesn't, cut it in half again. Loosely speaking, academia is trying to automate this process, and have had some success.

The following has been lifted from UC Davis News & Information :: Software 'Chipper' Speeds Debugging

Quote
Software 'Chipper' Speeds Debugging

September 28, 2007

Computer scientists at UC Davis have developed a technique to speed up program debugging by automatically "chipping" the software into smaller pieces so that bugs can be isolated more easily.

Computer programs consist of thousands, tens or even hundreds of thousands of lines of code. To isolate a bug in the code, programmers often break it into smaller pieces until they can pin down the error in a smaller stretch that is easier to manage. UC Davis graduate student Chad Sterling and Ron Olsson, professor of computer science, set out to automate that process.

"It's really tedious to go through thousands of lines of code," Olsson said.

The "Chipper" tools developed by Sterling and Olsson chip off pieces of software while preserving the program structure.

"The pieces have to work after they are cut down," Olsson said. "You can't just cut in mid-sentence."

In a recent paper in the journal "Software -- Practice and Experience," Olsson and Sterling describe ChipperJ, a version developed for the Java programming language. ChipperJ was able to reduce large programs to 20 to 35 percent of their former size in under an hour.

More information about automated program chipping is available on Olsson's Web site at http://www.cs.ucdavis.edu/~olsson/.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Automate Your "Cut It In Half" Debugging Sessions
« Reply #1 on: October 05, 2007, 10:20 AM »
So, an automated binary search for bugs, kinda? Cool :)
- carpe noctem

Original address: https://www.donationcoder.com/forum/index.php?topic=10245.0