eclipse-m2e/m2e-core

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

alerosmile opened this issue · 0 comments

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.