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

Remote debugging a Maven project: source lookup does not work for workspace dependencies #1641

Open
alerosmile opened this issue Jan 5, 2024 · 0 comments

Comments

@alerosmile
Copy link

During remote debugging a Maven project, if stepping into a method of a workspace dependencies, the source lookup fails. I found that adding the following line to the launch configuration solves the issue:
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>

I'm not sure if this causes any unwanted side effects but adding org.eclipse.jdt.launching.remoteJavaApplication to the supportedTypes set could be a possible way to get this working.

While investigating this I found another issue:
The method MavenLaunchConfigurationListener.updateLaunchConfiguration should also call MavenRuntimeClasspathProvider.disable if the launch configuration's project is not a Maven project anymore.

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

No branches or pull requests

1 participant