I would like to have Eclipse's Java debugger debug-suspend the monitored process whenever an object of a particular type (class / interface) gets instantiated.

As a workaround, I can set breakpoints

  • on all constructors of that type
  • on all constructors of that type's supertypes and subtypes

but

  • this is awkward
  • neglects instantiation with the default constructor
  • may cause false-positive debug suspensions on object instantiations of classes I didn't want to suspend on.
Edit
Report