Is there a way to intercept inside the tested classes?

Here is my scenario:

  • I have an Android ( CoreService) service
  • I use ServiceTestCase<CoreService>to check it
  • CoreService spawns a thread and creates several classes that have listeners / callbacks.

Is there a way to set breakpoints in spawned threads and / or callbacks and stop JUnit? It stops only at breakpoints defined in a JUnit project or class CoreService.

+5
source share
1 answer

Try changing the pause breakpoint policy to Suspend virtual machine :

enter image description here

To change it globally:

enter image description here

, .

+2

All Articles