I'm wondering if there is an API call in JDI or something similar that I can use to suspend my debuggee just as if a breakpoint was set there. Whenever this code was executed in the debuggee, a debugger (if attached) would get control.
It does not exist now. It is possible to implement in future. We have discussed about this idea.
We would like to know how this feature will help in debugging your problem. Can you please provide a use case for this feature.