Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support debug on SpyBeans #3653

Open
raulvaldoleirospowerdot opened this issue May 15, 2024 · 5 comments
Open

Support debug on SpyBeans #3653

raulvaldoleirospowerdot opened this issue May 15, 2024 · 5 comments
Labels

Comments

@raulvaldoleirospowerdot

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
Copy link
Contributor

snjeza commented May 15, 2024

I can't reproduce the issue.
spybean

@raulvaldoleirospowerdot
Copy link
Author

Sorry, I forgot to mention the class.

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

@snjeza
Copy link
Contributor

snjeza commented May 15, 2024

I can reproduce the issue in Eclipse too.

@raulvaldoleirospowerdot
Copy link
Author

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
Copy link
Member

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants