Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Trace flow of method call

Thread view: 
Christophe Elek [IBM] - 23 May 2006 15:26 GMT
All,
a couple months ago i found a java property that would allow me to trace
the method in/method out of my packages

it looked like

java -D<property>=org.mypackage.* <main class>

Which would trace all in/out of each method in my package...

I cannot find the doc :( anyone knows what I am talking about ?

Signature

Christophe Elek
SWG - IBM Rational Serviceability
celek@ca.ibm.com

IchBin - 23 May 2006 19:20 GMT
:: All,
:: a couple months ago i found a java property that would allow me to trace
[quoted text clipped - 12 lines]
:: SWG - IBM Rational Serviceability
:: celek@ca.ibm.com

http://java.sun.com/j2se/1.5.0/docs
to
http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html
to
http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html
to
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html

Gave you more links  to look at in the future.

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)
Chris - 25 May 2006 13:56 GMT
"IchBin" <weconsultants@pdt.net> wrote in news:FOKcnYqdY-zEz-
7ZUSdV9g@ptd.net:

> http://java.sun.com/j2se/1.5.0/docs
> to
[quoted text clipped - 3 lines]
> to
> http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html

Thanks IchBin,
The link did not provide me with the answer... directly :)
They reminded me it could be a IBM JDK thingy and not a SUN one

I found IBM JDK has such a feature, named method trace (which I do not see
in SUN JDK)
It is -Xtrace in JDK 5 and -Dibm.dg.trc.methods in JDK 1.4.2

http://www-128.ibm.com/developerworks/java/jdk/diagnosis/

Interestingly, IBM JDK also has a java API to dump a stack trace... :)

com.ibm.jvm.Dump#JavaDump()/ #HeapDump() / #SystemDump()

Thanks for the hint though :)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.