From c7a557c43221c1fbad4117e63b6cd8c255ddc8f7 Mon Sep 17 00:00:00 2001 From: liu fengyun Date: Thu, 9 Feb 2017 17:24:47 +0100 Subject: add more debug files to the tests --- tests/debug/method.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/debug/method.scala (limited to 'tests/debug/method.scala') diff --git a/tests/debug/method.scala b/tests/debug/method.scala new file mode 100644 index 000000000..9489b0088 --- /dev/null +++ b/tests/debug/method.scala @@ -0,0 +1,14 @@ +object Test { + def main(args: Array[String]): Unit = { + val a = 1 + 2 // [break] [step: a * 9] + val b = a * 9 // [step: plus] + val c = plus(a, b) // [step: x * x] + print(c) + } + + def plus(x: Int, y: Int) = { + val a = x * x // [step: y * y] + val b = y * y // [step: a + b] + a + b // [step: plus] [step: print] [cont] + } +} -- cgit v1.2.3