Okay, so I have a very large project in Java that I have been working on for years (a game, if you must know).
Unfortunately, a mysterious message has started being printed. No matter the lengths of my searching, I cannot pinpoint the location of the message.
I know that you can override the println method, and I was curious if it was possible to have some sort of debugging info attached to the message being printed? Like the line or file it was printed from perhaps? I tried searching Google for this, but it is simply too detailed of a problem that I cannot find an answer.
Even worse, the message is very ambiguous. It is simply "-1".
Atleast I know now to use a proper logger instead of simply println().