Same as Debug.assert, but prints the code instead of an error message.
Same as Debug.assert, but prints the code instead of an error message.
the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.
val one = 1; Debug.assertCode({one + 1 == 2}, 0) // 0 lines of stack trace
val one = 1; Debug.assertCode{one + 1 == 2}
Same as Debug.check, but prints the code instead of an error message.
Same as Debug.check, but prints the code instead of an error message.
the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.
val one = 1; Debug.checkCode({one + 1 == 2}, 0) // 0 lines of stack trace
val one = 1; Debug.checkCode{one + 1 == 2}
Same as Debug.err, but prints the code in the block, not just the result
Same as Debug.err, but prints the code in the block, not just the result
the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.
myVal = 3; Debug.codeErr(1 + 2 + myVal}, 3) // 3 lines of stack trace
myVal = 3; Debug.codeErr{1 + 2 + myVal}
Same as Debug.out, but prints the code in the block, not just the result
Same as Debug.out, but prints the code in the block, not just the result
the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.
myVal = 3; Debug.codeOut(1 + 2 + myVal}, 3) // 3 lines of stack trace
myVal = 3; Debug.codeOut{1 + 2 + myVal}
Traces the contents of a Scala container to standard error.
Traces the contents of a Scala container to standard error. To convert a Java container into a Scala container, import collection.JavaConversions._ Note: The maximum number of elements it can print is 2 to the 32 elements.
the Scala collection. TraversableLike is a base trait of all kinds of Scala collections.
the index of the first element to print. To work on all containers, index is counted using an iterator.
the number of elements you want to trace. Defaults to all elements in the collection (or 2 to the 32 elements)
the number of lines of stack trace.
the string containing what was printed or what would have been printed if printing was enabled.
Traces the contents of a Scala container to standard out.
Traces the contents of a Scala container to standard out. To convert a Java container into a Scala container, import collection.JavaConversions._ Note: The maximum number of elements it can print is 2 to the 32 elements.
the Scala collection. TraversableLike is a base trait of all kinds of Scala collections.
the index of the first element to print. To work on all containers, index is counted using an iterator.
the number of elements you want to trace. Defaults to all elements in the collection (or 2 to the 32 elements)
the number of lines of stack trace.
the string containing what was printed or what would have been printed if printing was enabled.
Same as Debug.err, but prints the entire expression, not just the result
Same as Debug.err, but prints the entire expression, not just the result
the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.
Debug.desugarErr({val myVal = 3; 1 + 2 + myVal}, 3) // 3 lines of stack trace
Debug.desugarErr{val myVal = 3; 1 + 2 + myVal}
Same as Debug.out, but prints the whole expression not just its result
Same as Debug.out, but prints the whole expression not just its result
the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.
Debug.desugarOut({val myVal = 3; 1 + 2 + myVal}, 3) // 3 lines of stack trace
Debug.desugarOut{val myVal = 3; 1 + 2 + myVal}
Gets the collection as a string of n elements from start to start + numElements
Gets the collection as a string of n elements from start to start + numElements
Scala specific debug methods.