Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enables Expression Evaluator for remote debugging
The project classpath needs to be set for Debugger machine as well. In other case it is not possible to evaluate instances on Debugger side and send the output to Debugee machine. Fixes #1002439
- Loading branch information
1 parent
ce8edc0
commit a04f664
Showing
5 changed files
with
60 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...scalaide/debug/internal/launching/ScalaRemoteApplicationLaunchConfigurationDelegate.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.scalaide.debug.internal.launching | ||
|
||
import java.util.{ Map => JMap } | ||
|
||
import org.eclipse.core.runtime.IProgressMonitor | ||
import org.eclipse.debug.core.ILaunch | ||
import org.eclipse.debug.core.ILaunchConfiguration | ||
import org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate | ||
import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants | ||
import org.scalaide.core.internal.launching.ClasspathGetterForLaunchDelegate | ||
|
||
object ScalaRemoteApplicationLaunchConfigurationDelegate { | ||
val DebugeeProjectClasspath = "DebugeeProjectClasspath" | ||
val DebugeeProjectClasspathSeparator = "," | ||
} | ||
|
||
class ScalaRemoteApplicationLaunchConfigurationDelegate extends JavaRemoteApplicationLaunchConfigurationDelegate | ||
with ClasspathGetterForLaunchDelegate { | ||
import ScalaRemoteApplicationLaunchConfigurationDelegate._ | ||
|
||
override def launch(configuration: ILaunchConfiguration, mode: String, launch: ILaunch, monitor: IProgressMonitor): Unit = { | ||
val argMap = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_CONNECT_MAP, null.asInstanceOf[JMap[String, String]]) | ||
argMap.put(DebugeeProjectClasspath, getClasspath(configuration).mkString(DebugeeProjectClasspathSeparator)) | ||
super.launch(configuration, mode, launch, monitor) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters