Files
kotlin-fork/idea/testData/debugger/tinyApp/outs/frameClassObject.out
T
Nikolay Krasko 84c473d800 Speed up debugger tests by replacing base output preprocessor
Avoid calling InetAddress.getLocalHost() that can be very slow.
Exact connection or disconnection string isn't relevant for tests
anyway.
2017-03-23 00:31:43 +03:00

44 lines
794 B
Plaintext
Vendored

LineBreakpoint created at frameClassObject.kt:16
Run Java
Connected to the target VM
frameClassObject.kt:16
Compile bytecode for prop
Compile bytecode for myFun()
package frameClassObject
fun main(args: Array<String>) {
A().test()
}
class A {
companion object {
val prop = 1
fun myFun() = 1
}
fun test() {
foo {
//Breakpoint!
prop
}
}
}
fun foo(f: () -> Unit) {
f()
}
// PRINT_FRAME
// EXPRESSION: prop
// RESULT: 1: I
// EXPRESSION: myFun()
// RESULT: 1: I
frame = invoke:16, A$test$1 {frameClassObject}
this = this = {frameClassObject.A$test$1@uniqueID}Function0<kotlin.Unit>
field = arity: int = 0 (sp = Lambda.!EXT!)
Disconnected from the target VM
Process finished with exit code 0