84c473d800
Avoid calling InetAddress.getLocalHost() that can be very slow. Exact connection or disconnection string isn't relevant for tests anyway.
102 lines
2.4 KiB
Plaintext
Vendored
102 lines
2.4 KiB
Plaintext
Vendored
LineBreakpoint created at frameExtFunExtFun.kt:24
|
|
Run Java
|
|
Connected to the target VM
|
|
frameExtFunExtFun.kt:24
|
|
Compile bytecode for valFoo
|
|
Compile bytecode for valTest
|
|
Compile bytecode for aProp
|
|
Compile bytecode for outerProp
|
|
Compile bytecode for bProp
|
|
Compile bytecode for aMyFun()
|
|
Compile bytecode for outerMyFun()
|
|
Compile bytecode for bMyFun()
|
|
package frameExtFunExtFun
|
|
|
|
fun main(args: Array<String>) {
|
|
Outer().run()
|
|
}
|
|
|
|
class A {
|
|
val aProp = 1
|
|
fun aMyFun() = 1
|
|
}
|
|
|
|
class Outer {
|
|
val outerProp = 1
|
|
fun outerMyFun() = 1
|
|
|
|
fun A.foo() {
|
|
val valFoo = 1
|
|
class LocalClass {
|
|
val lcProp = 1
|
|
fun B.test() {
|
|
val valTest = 1
|
|
lambda {
|
|
//Breakpoint!
|
|
outerProp + aProp + lcProp + bProp + valFoo + valTest
|
|
}
|
|
}
|
|
fun run() {
|
|
B().test()
|
|
}
|
|
}
|
|
|
|
LocalClass().run()
|
|
}
|
|
|
|
fun run() {
|
|
A().foo()
|
|
}
|
|
}
|
|
|
|
class B {
|
|
val bProp = 1
|
|
fun bMyFun() = 1
|
|
}
|
|
|
|
fun lambda(f: () -> Unit) {
|
|
f()
|
|
}
|
|
|
|
// PRINT_FRAME
|
|
|
|
// EXPRESSION: valFoo
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: valTest
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: aProp
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: outerProp
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: bProp
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: aMyFun()
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: outerMyFun()
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: bMyFun()
|
|
// RESULT: 1: I
|
|
frame = invoke:24, Outer$foo$LocalClass$test$1 {frameExtFunExtFun}
|
|
this = this = {frameExtFunExtFun.Outer$foo$LocalClass$test$1@uniqueID}Function0<kotlin.Unit>
|
|
field = this$0: frameExtFunExtFun.Outer$foo$LocalClass = {frameExtFunExtFun.Outer$foo$LocalClass@uniqueID} (sp = null)
|
|
field = lcProp: int = 1 (sp = frameExtFunExtFun.kt, 19)
|
|
field = this$0: frameExtFunExtFun.Outer = {frameExtFunExtFun.Outer@uniqueID} (sp = null)
|
|
field = outerProp: int = 1 (sp = frameExtFunExtFun.kt, 13)
|
|
field = receiver$0: frameExtFunExtFun.A = {frameExtFunExtFun.A@uniqueID} (sp = null)
|
|
field = aProp: int = 1 (sp = frameExtFunExtFun.kt, 8)
|
|
field = $valFoo: int = 1 (sp = null)
|
|
field = receiver$0: frameExtFunExtFun.B = {frameExtFunExtFun.B@uniqueID} (sp = null)
|
|
field = bProp: int = 1 (sp = frameExtFunExtFun.kt, 41)
|
|
field = $valTest: int = 1 (sp = null)
|
|
field = arity: int = 0 (sp = Lambda.!EXT!)
|
|
Disconnected from the target VM
|
|
|
|
Process finished with exit code 0
|