Support debug on SpyBeans
Can't debug a class annotated with SpyBean annotation, this makes hard to debug testes because I need to comment the annotation and all the verify statements.
I uploaded a project as sample, if you uncomment the SpyBean annotation you will be able to debug it.
Thanks
~~I can't reproduce the issue.~~
Sorry, I forgot to mention the class.
Can you try to add the breakpoint on line 9 of ComponentSample class please?
I can reproduce the issue in Eclipse too.
That means the fix should be done first in eclipse and then raise the version on vscode java? Just to understand the process 😀 Thanks
Yes, it's a possibility that the issue is in a component coming from JDT (and not JDT-LS). @snjeza is there anything in the client/server logs to indicate what the failure might be ?
See workaround from this stackoverflow post https://stackoverflow.com/questions/61775881/eclipse-mockito-debugging-doesnt-stop-on-breakpoints-in-spied-beans
Has anyone raised the issue in Eclipse?
See workaround from this stackoverflow post https://stackoverflow.com/questions/61775881/eclipse-mockito-debugging-doesnt-stop-on-breakpoints-in-spied-beans
Tihs worked for me in vscode, thanks.