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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:37:42+00:00 2026-05-14T16:37:42+00:00

We have a large java code base [~1 M Lines]. Buried (somewhere) in the

  • 0

We have a large java code base [~1 M Lines].

Buried (somewhere) in the code base is some old debug output to System.out that we want to remove (its cluttering things up).

The problem is: out code base is so large that we can’t easily find where the output is coming from. What we want is a way to see where System.out.println is getting called from (like a stack trace from an exception or some such).

Its not suitable to debugging — the errant output is coming from some errant thread somewhere etc.

Any ideas on how to track the source of this errant output down?

PS: 99.99% of calls to System.out are legit, and we have thousands of them, so simply searching the code base for System.out calls is not a solution!

  • 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-14T16:37:43+00:00Added an answer on May 14, 2026 at 4:37 pm

    There is a System.setOut() method. If you are really desperate, set this to some wrapper of real stdout and do whatever in your wrapper. E.g. compare written string against something and throw if that’s the errant output.

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

Sidebar

Related Questions

We have rather large code base (150+ projects, 400000+ lines of Java code, some
I have some image processing Java code in Android that acts upon two large
I have a large array. I have some Java code for identifying indices for
I have a large code base that resides on a unix server, and for
I have a large Java app that uses massive amounts of memory at times
I have set up a remote Mercurial (Hg) repository that holds a large Java
I have a large scene graph in Java 3D consisting out of a Group
I have a Java application that makes heavy use of a large file, to
I have a situation where there is a small piece of Java code that
In some Java code running on Windows, I'm reading some large blocks of RGB

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.