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 3938134
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:08:58+00:00 2026-05-20T00:08:58+00:00

I saw a comment on another question (I forget which one) encouraging the asker

  • 0

I saw a comment on another question (I forget which one) encouraging the asker to avoid testing his/her code in the debug harness unless strictly necessary, citing something to the effect of it acting as a crutch. There’s certainly something to be said for developing the skill to deduce the cause of bugs without "direct" evidence. I’m quite a fan of debuggers myself (in fact, I tend to only run without if strictly necessary), but I got to thinking about the relative merits of each approach.

Debugger Pros

  • Starting with the obvious, takes less time to zero in on faults, exceptions and crashes
  • Tracing provides a nice alternative to littering your code with commented-out print statements
  • Performance overhead can give you extra wiggle room, i.e. if your program is responsive while debugging, it will almost definitely be so in the wild

Debugger Cons

  • Performance overhead can make iterations slower
  • (Edit) Tunnel Vision: Debugging the symptom can distract you from deducing the cause when the crash occurs long after or far from the defect
  • It may "help" you by initializing variables or otherwise masking bugs, leading to surprises later on
  • Conversely, there’s the odd bug that only crops up in a debug configuration; tracking it down may be a waste of effort (though, this is often indicative of a deeper, subtler problem that is worth fixing)

These are general, of course–it varies wildly with language, environment and situation–but what are some other considerations?

  • 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-20T00:08:58+00:00Added an answer on May 20, 2026 at 12:08 am

    If you’re reasonably certain you have some bugs to deal with, running in debug mode tends to make finding them a bit faster. If you’re at the point that you think the bugs are gone, you want to simulate the target environment as closely as possible, which usually means turning debug mode off.

    Depending on your language, tools, etc., chances are pretty decent that you can also do something that’s more or less a hybrid of the two: generate debugging information, but everything else like debug mode. This is often extremely helpful as well, so you can do debugging on the code after it’s generated the way the customer will see it (but beware that optimization can produce oddities, such as changing the order of code…)

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

Sidebar

Related Questions

So in a comment from another question , I just saw this example for
Saw this piece of code in a Ruby on Rails book. This first one
I saw this in an answer to another question , in reference to shortcomings
i saw comment like this one place i have seen this problem is if
I saw this code in a comment for the article Never-ending Shuffled Sequence .
I just saw the first comment to this question Inserting into a serialized array
Testing my site I saw a Cookie score of 81/100 with following comment: FAILED
So I saw this question/comment... How to integrate SQL Server 2005 Express Edition to
In a comment on this question , I saw a statement that recommended using
When reading through parfib.hs code on github, I saw this comment about memory allocation

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.