• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to find the parent function  RSS feed

 
Harshit Rastogi
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

With the exception stacktrace, i can view the sequence of functions called from the last to first one.

On similar lines i want to know how can i achieve the same if i have to find the stack flow of a normal function.

Is there any direct java APi method or own logic need to be applied
Any suggestions welcomed.
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think, answer to your doubt is in logging mechanism. This is how we do
troubleshooting, know flow of application execution.

Place to place you put your logging statements, from that log you can find
the flow of execution.

A simple start can be done by inserting System.out.println("message");
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get a stack trace at any time using the Thread.getStackTrace() method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!