O_O
O_O

Reputation: 4477

Java debugging - Searching for a string in the package in a jar

I am debugging a Java package and I need to search for some debug statements being spitted out in the cmd to find out where in the code the program got stuck at. What type of search programs would you use to search for a debug message being printed onto screen in a large Java package? I tried using the ordinary Windows search using the "A word or phrase in the file" but I don't think it is doing it's job. Any recommendations?

Thanks.

Upvotes: 1

Views: 167

Answers (2)

jcwayne
jcwayne

Reputation: 741

To search for a string within a JAR (and include meaningful context) you can use the search (not find, which only works with a single class) function in Java Decompiler. How useful its output is will depend on whether the JAR has been run through an obfuscation tool.

Upvotes: 3

Simiil
Simiil

Reputation: 2311

In Eclipse, you can search your entire project or packages with Search -> File

but you should reconsider your debugging techniques, since there are better Methods than Printing to the CMD

Upvotes: 0

Related Questions