Here's my scenario:
- I have an Android service (
CoreService
) - I use
ServiceTestCase<CoreService>
to test it CoreService
spawns a thread and instantiates several classes that have listeners/callbacks on them.
Is there any way to set up breakpoints in the spawned threads and/or callbacks and have JUnit stop at these? It only stops at breakpoints set in the JUnit project or CoreService
class.
Try changing the breakpoint suspend policy to Suspend VM:
To change it globally:
For more information about Breakpoint Suspend Policy, check out here.