Debugger: use extract method to get function arguments

This commit is contained in:
Natalia Ukhorskaya
2014-04-15 14:12:02 +04:00
parent 084c72f91c
commit 2ffcc5124e
25 changed files with 422 additions and 64 deletions
@@ -0,0 +1,25 @@
package extractLocalVariables
fun main(args: Array<String>) {
val a = 1
val klass = MyClass()
//Breakpoint!
klass.f1(a)
}
class MyClass {
val b = 1
fun f1(p1: Int) = p1
}
// EXPRESSION: a
// RESULT: 1: I
// EXPRESSION: klass.f1(1)
// RESULT: 1: I
// EXPRESSION: args.size
// RESULT: 0: I
// EXPRESSION: klass.b
// RESULT: 1: I