Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Method flow analysis using Eclipse IDE - reg

 
dinesh Venkatesan
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I would like to know is there any feature in Eclipse that would help to keep track of the method flow. I mean, I would like to start from a method and I should be able to step through each lines of the code, when there is a method call, the utility should transfer to that particular source and comeback upon traversing the block.

Sorry if I am not clearly stated my problem.

Thanks and Regards,
Dinesh Venkatesan.
 
Wirianto Djunaidi
Ranch Hand
Posts: 210
Ruby Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dinesh,

From your description, it sounds more like you are looking for debugging tools. In that case, Eclipse does has it.

Usually when people says method flow analysis tools, it means tools that analyze codes and generate a sequence/interaction diagrams to me.

-DJ
 
Campbell Ritchie
Sheriff
Pie
Posts: 48940
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rather than clicking "run" you find the "debug" menu. Set a breakpoint, and your app will run until it reaches the breakpoint. You now have three options
  • 1: Step into: follows the flow of control into all method calls.
  • 2: Step Over: Follows the flow of execution but doesn't show the details of a called method.
  • 3: Step return: Follows the flow of execution to the end of the present method and back to wherever it was called from.
  • You can call each of those functions with f-keys, I think f5 f6 and f7.
  • At any stage you can call up a window showing the values of any variables or fields at that point.
  • There are similar debuggers on most IDEs and they all work more-or-less the same way.
    [ April 18, 2008: Message edited by: Campbell Ritchie ]
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic