|
From: <mba...@us...> - 2007-02-25 15:47:33
|
Revision: 2031
http://svn.sourceforge.net/rubyeclipse/?rev=2031&view=rev
Author: mbarchfe
Date: 2007-02-25 07:47:31 -0800 (Sun, 25 Feb 2007)
Log Message:
-----------
call "set trace" on startup so that we get a RubyProcessingException when eval fails
Modified Paths:
--------------
trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/commands/RubyDebugConnection.java
Modified: trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/commands/RubyDebugConnection.java
===================================================================
--- trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/commands/RubyDebugConnection.java 2007-02-25 15:46:32 UTC (rev 2030)
+++ trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/commands/RubyDebugConnection.java 2007-02-25 15:47:31 UTC (rev 2031)
@@ -35,13 +35,14 @@
try {
evalResult = command.getEvalReader().readEvalResult();
} catch (RubyProcessingException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ RdtDebugCorePlugin.log(e) ;
}
if (evalResult == null || !evalResult.equals("true")) {
// TODO: go on ?
throw new DebuggerNotFoundException("Could not add extension to ruby debug") ;
}
+ // set trace: show stack trace if evaluation fails
+ new GenericCommand("set trace", true).execute(this) ;
}
@Override
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|