The easiest / dirtiest way is to just put (new Exception("test")).printStackTrace()
in SomeObject
's constructor and run the code. You'll get a stack trace printed to the console every time SomeObject
is instantiated.
Eclipse also supports breakpoints in constructors so you could set a breakpoint and debug.