When debugging Java code in Eclipse, is there any way to find which method called the current method?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Once you’ve started the debugger, you can go to the (Window > Show View > Debug) debugging view. Set a break point in your code. When the break point is hit, it will bring up a call stack. When you click on the different items in the call stack, you should be able to see the code path used to call the method.
Also, when your program isn’t running, if you highlight the method name, and then do a right click > references > Workspace (or Ctrl + shift + G), it will bring up a search view with all of the places in your workspace that the method is called.