redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.05k stars 420 forks source link

Support debug on SpyBeans #3653

Open raulvaldoleirospowerdot opened 1 month ago

raulvaldoleirospowerdot commented 1 month ago

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.

sample-project.zip

Thanks

snjeza commented 1 month ago

I can't reproduce the issue. spybean

raulvaldoleirospowerdot commented 1 month ago

Sorry, I forgot to mention the class.

Can you try to add the breakpoint on line 9 of ComponentSample class please?

snjeza commented 1 month ago

I can reproduce the issue in Eclipse too.

raulvaldoleirospowerdot commented 1 month ago

That means the fix should be done first in eclipse and then raise the version on vscode java? Just to understand the process 😀 Thanks

rgrunber commented 1 month ago

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 ?