This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Grokking Bitcoin and have Kalle Rosenbaum on-line!
See this thread for details.
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
  • Carey Brown
  • salvin francis
  • Claude Moore

Finding what project method called the run method  RSS feed

Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I find out what project code called  I'm not interested in the possibly long line of eclipse code that called it, I want to know what was the last method in the project code that was executed that led to it being called.
Saloon Keeper
Posts: 20640
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why? What does that even mean?

An application run under Eclipse shouldn't assume that Eclipse will always be there. Indeed, if you're using Eclipse to run production processing, you're either using the non-IDE aspects of Eclipse (which few do) or you've got some serious management problems.

A child can determine what its stacktrace is by simply creating an Exception and invoking printStackTrace on it. That will run you up to the thread root. I don't know any way offhand to determine what code constructed or launched a Thread, but then again, when I need to know such things, it's always been in a context where the caller could be designed to provide that information.

Popeye has his spinach. I have this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!