Home » Newcomers » Newcomers » Log all methods called
Log all methods called [message #496075] Sat, 07 November 2009 21:30 Go to next message
J.Barnen   is currently offline J.Barnen
Messages: 7
Registered: November 2009
Junior Member
Hi,

is there a way (in the debugger for instance) to log in the console all methods called?
(methods declared in the workspace)

Thanks
Re: Log all methods called [message #496100 is a reply to message #496075 ] Sun, 08 November 2009 11:26 Go to previous message
Russell Bateman  is currently offline Russell Bateman
Messages: 147
Registered: July 2009
Senior Member
J.Barnen wrote:
> Hi,
>
> is there a way (in the debugger for instance) to log in the console all
> methods called?
> (methods declared in the workspace)
>
> Thanks
If the methods are yours, you can always put something like this at the
top of the methods that interest you:

if( log.isDebugEnabled() )
log.debug( "methodName(): " + state, blah, blah, blah );

There is also profiling in Eclipse and/or Java, but I've never used it.
Previous Topic:Not all JUnit test cases run when class executed
Next Topic:Export eclipse installation
Goto Forum: