Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 561677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:28:29+00:00 2026-05-13T12:28:29+00:00

I am involved in a contest, and in one event we have debugging questions.

  • 0

I am involved in a contest, and in one event we have debugging questions. I have to design some really good debugging problems in C and C++.

How can I create some good problems on debugging? What aspects should I consider while designing the problems?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:28:29+00:00Added an answer on May 13, 2026 at 12:28 pm

    My brainstorming session:

    Memory leaks of the subtle sort are always nice to have. Mess around with classes, constructors, copy-constructors and destructors, and you should be able to create a difficult-to-spot problem with ease.

    One-off errors for array loops are also a classic.

    Then you can simply mess with the minds of the readers by playing with names of things. Create variables with subtly different names, variables with randomized (AND subtly different) names, etc. and then let them try and spot the one place where you’ve mixed up length and lenght. Don’t forget about casing differences.

    Calling conventions can be abused to create subtle bugs too (like reversing the order of parameters).

    Also let’s not forget about endless hours of fun from tricky preprocessor defines and templates (did you know that C++ templates are supposedly Turing-complete?) Metaprogramming bugs should be entertaining.

    Next idea that comes to mind is to provide a correct program, but flawed input data (subtly, of course). The program will then fail for the lack of error checking, but it will be some time until people realize that they are looking for problems in the wrong place.

    Race conditions are often a difficult to reproduce and fix, try to play with multithreading.

    Underflows/overflows can be easily missed by casual inspection.

    And last, but not least – if you’re a a programmer, try remembering what was the last big problem that you spent two weeks on solving. If you’re not a computer programmer, try to find one and ask them. I’m a .NET programmer, so unfortunately my experiences will relate little to your requirement of C/C++.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm involved with updating an Access solution. It has a good amount of VBA,
I have been involved in a lot of projects, both old and new, and
I have a cool snippet of code that works well, except one thing. The
I have a Generic HTTP Handler (*.ashx) in my ASP.Net application which performs some
I have to views. One on top of the other. But i cannot click
I've been stuck with this problem for over a week now. Hopefully some one
I'm involved in creating a web based business solution. The idea is that the
I'm involved in a project that is attempting to use the Eclipse RCP splash
I'm involved in building a donation form for non-profits. We recently got hit by
I am involved in development of a tiered application that uses LINQ2SQL separated from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.