Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to breakpoint inside the tested classes?

Here's my scenario:

  1. I have an Android service (CoreService)
  2. I use ServiceTestCase<CoreService> to test it
  3. 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.

like image 467
m0skit0 Avatar asked Nov 04 '22 20:11

m0skit0


1 Answers

Try changing the breakpoint suspend policy to Suspend VM:

enter image description here

To change it globally:

enter image description here

For more information about Breakpoint Suspend Policy, check out here.

like image 138
yorkw Avatar answered Nov 09 '22 13:11

yorkw