84c473d800
Avoid calling InetAddress.getLocalHost() that can be very slow. Exact connection or disconnection string isn't relevant for tests anyway.
60 lines
1.2 KiB
Plaintext
Vendored
60 lines
1.2 KiB
Plaintext
Vendored
LineBreakpoint created at frameThis0.kt:16
|
|
Run Java
|
|
Connected to the target VM
|
|
frameThis0.kt:16
|
|
Compile bytecode for val1
|
|
Compile bytecode for val2
|
|
Compile bytecode for prop1
|
|
Compile bytecode for prop1 + val1 + val2
|
|
Compile bytecode for myFun()
|
|
package frameThis0
|
|
|
|
fun main(args: Array<String>) {
|
|
A().test()
|
|
}
|
|
|
|
class A {
|
|
val prop1 = 1
|
|
fun myFun() = 1
|
|
|
|
fun test() {
|
|
val val1 = 1
|
|
foo {
|
|
val val2 = 1
|
|
//Breakpoint!
|
|
prop1 + val1 + val2
|
|
}
|
|
}
|
|
}
|
|
|
|
fun foo(f: () -> Unit) {
|
|
f()
|
|
}
|
|
|
|
// PRINT_FRAME
|
|
|
|
// EXPRESSION: val1
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: val2
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: prop1
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: prop1 + val1 + val2
|
|
// RESULT: 3: I
|
|
|
|
// EXPRESSION: myFun()
|
|
// RESULT: 1: I
|
|
frame = invoke:16, A$test$1 {frameThis0}
|
|
this = this = {frameThis0.A$test$1@uniqueID}Function0<kotlin.Unit>
|
|
field = this$0: frameThis0.A = {frameThis0.A@uniqueID} (sp = null)
|
|
field = prop1: int = 1 (sp = frameThis0.kt, 8)
|
|
field = $val1: int = 1 (sp = null)
|
|
field = arity: int = 0 (sp = Lambda.!EXT!)
|
|
local = val2: int = 1 (sp = frameThis0.kt, 14)
|
|
Disconnected from the target VM
|
|
|
|
Process finished with exit code 0
|