Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Tracing rt.jar? Date: Sat, 14 Jul 2012 09:44:13 -0700 Organization: A noiseless patient Spider Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 14 Jul 2012 16:44:17 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="13220"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+syZQFoPiyFguNsdCMSRDuLk2NYCQ1OIo=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: Cancel-Lock: sha1:7HEvJfq3Mlj2qbp2hqEoLDAo4rQ= Xref: csiph.com comp.lang.java.programmer:16020 On 7/14/2012 9:28 AM, Stefan Ram wrote: > Is there an rt.jar somewhere out there than can replace the > standard rt.jar, but was instrumented to trace° all incoming¹ > calls with their argument values? Or some other technique Hmm, you can step into rt.jar with a debugger, and if you have the source loaded it will at least show you what lines are executed branches are taken (although local variables have been optimized away). I've also accidentally enabled "FINEST" level of debuging for java.* files and gotten quite a lot of spew. That won't work if the classes you are interested in don't log, but it might be worth a shot. I don't know of anything that specifically does what you want, although if you look into aspect oriented programming I think they might have something there that can auto-magically instrument a .jar file with logging. This would be a lot easier than trying to do the byte code re-writting yourself. Can you tell us specifically why you need this? What's the use case, model, or failure mode here? You question is kind of general.