作者:性感然小猫儿丿 | 来源:互联网 | 2023-06-03 08:04
that may be a dumb question... but I have a quite large java program that i'm debugging using the old System.err.println method, like I do using print* in any other language...
这可能是一个愚蠢的问题...但我有一个非常大的java程序,我正在使用旧的System.err.println方法进行调试,就像我在任何其他语言中使用print *一样...
But after a while, I've so many of them, I don't know how to manage them (and sometimes I put twice the same message concatenated with other information making it even harder...)...(and suppressing/finding them in the end is sometimes not trivial
但过了一段时间,我有很多这样的人,我不知道如何管理它们(有时我把两次相同的信息与其他信息联系在一起使得它更难......)......(并且压制/最终找到它们有时并非微不足道
I don't know how to be more rigourous... Do you have like a kind of magic token ? do you always print out the location of the println...
我不知道如何更加严谨......你有没有像一种神奇的象征?你总是打印出println的位置......
If you've any java tool, I'd consider them but best-practices in general would be great...
如果你有任何java工具,我会考虑它们,但一般的最佳实践会很棒......
5 个解决方案