Print whole result in interactive Scala console

后端 未结 3 900
走了就别回头了
走了就别回头了 2021-02-02 18:19

When I type something into the Scala interactive console, the console prints the result of the statement. If the result is too long, the console crops it (scroll right to see i

3条回答
  •  一向
    一向 (楼主)
    2021-02-02 18:56

    try this

    scala> :power
    Power mode enabled. :phase is at typer.
    import scala.tools.nsc._, intp.global._, definitions._
    Try :help or completions for vals._ and power._
    
    scala> vals.isettings.maxPrintString
    res9: Int = 800
    
    scala> vals.isettings.maxPrintString = 10000
    vals.isettings.maxPrintString: Int = 10000
    

提交回复
热议问题