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

  • SEARCH
  • Home
  • 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 7991179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:13:20+00:00 2026-06-04T13:13:20+00:00

Using IDE’s debugging becomes very long in some projects, specially when working with graphics,

  • 0

Using IDE’s debugging becomes very long in some projects, specially when working with graphics, so sometimes I use debugging code, which prints out values, depending on the environment, sometimes on the project itself and sometimes on the console. But when the project is done, it becomes difficult to find the debugging code, and remove it, and when an unwanted thing pops, it appears odd. I am still a student so its better to learn now then later, how to manage it?

I couldn’t find the proper answer upon searching, but I have a few things in mind:

  1. Remove the code as soon as a module is tested, so there is less to find. It works but when the modules have to be tested later (at a higher level) it has top be added again, not to the extent of what was removed but still.

  2. Surround it with if to make sure it only runs when debugging flag is true, and keep it in the final version of the project.

  3. Plan the debugging code with the project, keep the methods and classes separate (where possible) and erase the calls and objects and when things are done.

What is the proper way of managing it?

  • 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-06-04T13:13:21+00:00Added an answer on June 4, 2026 at 1:13 pm

    The easiest way is to use a debugging flag.

    If this flag is a compiler constant (or otherwise hard-coded) you will need to re-compile the project if you want/do not want debugging.

    A better way is to make the flag use a value from a config file/command line parameter — this way you can control debugging without having to re-compile the project.

    An even better approach is to use a powerful logging library (if one is available) and use its facilities — the advantage is that you can better fine-tune what you want to log, where and in what format

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

Sidebar

Related Questions

I am using Eclipse IDE. Sometimes, after I make some alterations to the code
I'm using eclipse IDE, and sometimes, depending on the code, System.err output is printed
I'm using Eclipse IDE + remote Xdebug. EclipseIDE is listening 9000 port for some
I am using Selenium IDE Firefox plugin to create some test cases. I click
I am currently using NetBeans IDE with Jython 2.5.1 When debugging my project step
I am using PHPStorm IDE, and it has a very useful feature, inspect the
I'm using Netbeans IDE for developing a web applications, and I've some JARs available
I use C# (using VS IDE) for development. I am confused about Debug/Trace statements.
I am using Selenium IDE to record some scenarios and wanted to check if
I am using java1.6 without using any IDE.Now i want to use java Mail

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.