Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Out of Scope
    • Affects Version/s: Scala 2.9.2
    • Fix Version/s: None
    • Component/s: Repl / Interpreter
    • Labels:
      None

      Description

      OS: ubuntu 12.04
      Scala 2.9.2

      I was trying to spawn a scala shell in my code for debugging purposes. I tried with the following snippet of code, but the debug> shell that I get hangs after the first command. See the output below.

      import scala.tools.nsc.interpreter.ILoop._
      import scala.tools.nsc.interpreter.NamedParam
      
      object TestDebugger {
        def main(args: Array[String]) {
          0 to 10 foreach { i =>
            breakIf(i == 5, NamedParam("i", i))
            println(i)
          }
        }
      }
      
      $ scala /tmp/test.scala 
      0
      1
      2
      3
      4
      Debug repl starting.  Binding 1 value.
      i: Int = 5
      
      debug> i
      (it doesn't accept any input + it doesn't terminate)
      

      any help is appreciated. thanks.
      cheers,
      Yanick

        Activity

        Hide
        Jason Zaugg added a comment -

        break / breakIf were removed altogether in 2.10.

        https://github.com/scala/scala/commit/3e038d8#L16L1025

        So we'll have to close this one as "out of scope".

        Show
        Jason Zaugg added a comment - break / breakIf were removed altogether in 2.10. https://github.com/scala/scala/commit/3e038d8#L16L1025 So we'll have to close this one as "out of scope".
        Hide
        Ben Hutchison added a comment -

        I saw very similar hanging behavior today in 2.10. The setting that resolved it for me was:

        repl.settings.Yreplsync.value = true

        Show
        Ben Hutchison added a comment - I saw very similar hanging behavior today in 2.10. The setting that resolved it for me was: repl.settings.Yreplsync.value = true

          People

          • Assignee:
            Jason Zaugg
            Reporter:
            Yanick Fratantonio
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development