|
From: Markus B. <mba...@us...> - 2005-10-09 21:22:33
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1181/src/org/rubypeople/rdt/internal/launching Modified Files: DebuggerRunner.java Log Message: fixed port 1098 replaced by variable port Index: DebuggerRunner.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/DebuggerRunner.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** DebuggerRunner.java 25 Sep 2005 17:57:01 -0000 1.19 --- DebuggerRunner.java 9 Oct 2005 21:22:28 -0000 1.20 *************** *** 16,22 **** public class DebuggerRunner extends InterpreterRunner { public IProcess run(InterpreterRunnerConfiguration configuration, ILaunch launch) throws CoreException { IProcess process = super.run(configuration, launch); ! RubyDebugTarget debugTarget = new RubyDebugTarget(launch, process); RubyDebuggerProxy proxy = new RubyDebuggerProxy(debugTarget) ; if (proxy.checkConnection()) { --- 16,24 ---- public class DebuggerRunner extends InterpreterRunner { + private RubyDebugTarget debugTarget ; public IProcess run(InterpreterRunnerConfiguration configuration, ILaunch launch) throws CoreException { + debugTarget = new RubyDebugTarget(launch); IProcess process = super.run(configuration, launch); ! debugTarget.setProcess(process) ; RubyDebuggerProxy proxy = new RubyDebuggerProxy(debugTarget) ; if (proxy.checkConnection()) { *************** *** 32,35 **** --- 34,41 ---- protected void addDebugCommandLineArgument(List commandLine) { + if (!debugTarget.isUsingDefaultPort()) { + commandLine.add("-r" + debugTarget.getDebugParameterFile().getAbsolutePath()); + } + if (RdtDebugCorePlugin.isRubyDebuggerVerbose()) { commandLine.add("-reclipseDebugVerbose"); |