2.8.0 REPL Debugging

View: New views
2 Messages — Rating Filter:   Alert me  

2.8.0 REPL Debugging

by efleming969 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There is mention of a breakif feature in the 2.8 REPL, but I can't find it or any information on how to use it.

Does anyone know about this?

Re: 2.8.0 REPL Debugging

by Paul Phillips-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 06, 2009 at 10:34:23AM -0600, Erick Fleming wrote:
> There is mention <http://www.scala-lang.org/node/2097> of a breakif
> feature in the 2.8 REPL, but I can't find it or any information on how
> to use it.

Its usefulness was kind of shattered when the collections were
rewritten, but it's going to make a storming comeback with the help of
manifests.  However right now I'd be surprised if it works.  Try it by
calling scala.tools.nsc.Interpreter.break(p1, p2, ...) or look around
that object for other possible invocations.

--
Paul Phillips      | Before a man speaks it is always safe to assume
Apatheist          | that he is a fool.  After he speaks, it is seldom
Empiricist         | necessary to assume it.
pp: i haul pills   |     -- H. L. Mencken