Move debugger test data to the new location

This commit is contained in:
Yan Zhulanow
2019-09-27 00:13:53 +09:00
parent b4cc5703de
commit d8d81c51d7
1423 changed files with 0 additions and 0 deletions
@@ -0,0 +1,48 @@
package ceAnonymousObject
public val publicTopLevelObject: Any = object { fun test() = 1 }
private val privateTopLevelObject = object { fun test() = 1 }
fun main(args: Array<String>) {
MyClass().foo()
}
class MyClass {
public val publicObject: Any = object { fun test() = 1 }
protected val protectedObject: Any = object { fun test() = 1 }
private val privateObject = object { fun test() = 1 }
fun foo() {
val localObject = object { fun test() = 1 }
//Breakpoint!
val a = 1
}
}
// EXPRESSION: publicTopLevelObject
// RESULT: instance of ceAnonymousObject.CeAnonymousObjectKt$publicTopLevelObject$1(id=ID): LceAnonymousObject/CeAnonymousObjectKt$publicTopLevelObject$1;
// -EXPRESSION: privateTopLevelObject
// -RESULT: 1
// -EXPRESSION: privateTopLevelObject.test()
// -RESULT: 1: I
// EXPRESSION: publicObject
// RESULT: instance of ceAnonymousObject.MyClass$publicObject$1(id=ID): LceAnonymousObject/MyClass$publicObject$1;
// EXPRESSION: protectedObject
// RESULT: instance of ceAnonymousObject.MyClass$protectedObject$1(id=ID): LceAnonymousObject/MyClass$protectedObject$1;
// -EXPRESSION: privateObject
// -RESULT: 1
// -EXPRESSION: privateObject.test()
// -RESULT: 1: I
// EXPRESSION: localObject
// RESULT: instance of ceAnonymousObject.MyClass$foo$localObject$1(id=ID): LceAnonymousObject/MyClass$foo$localObject$1;
// EXPRESSION: localObject.test()
// RESULT: 1: I
@@ -0,0 +1,12 @@
LineBreakpoint created at ceAnonymousObject.kt:18
Run Java
Connected to the target VM
ceAnonymousObject.kt:18
Compile bytecode for publicTopLevelObject
Compile bytecode for publicObject
Compile bytecode for protectedObject
Compile bytecode for localObject
Compile bytecode for localObject.test()
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,16 @@
package ceAnonymousObjectCapturedInClosure
fun main(args: Array<String>) {
val localObject = object { fun test() = 1 }
var localObjectVar = object { fun test() = 1 }
//Breakpoint! (lambdaOrdinal = -1)
lambda { localObjectVar.test() }
}
fun lambda(f: () -> Int) = f()
// EXPRESSION: lambda { localObject.test() }
// RESULT: 1: I
// EXPRESSION: lambda { localObjectVar.test() }
// RESULT: 1: I
@@ -0,0 +1,9 @@
LineBreakpoint created at ceAnonymousObjectCapturedInClosure.kt:7 lambdaOrdinal = -1
Run Java
Connected to the target VM
ceAnonymousObjectCapturedInClosure.kt:7
Compile bytecode for lambda { localObject.test() }
Compile bytecode for lambda { localObjectVar.test() }
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,20 @@
package ceAnonymousObjectThisAsReceiver
fun main(args : Array<String>) {
val localObject = object {
fun test() = 1
fun foo() {
//Breakpoint!
val a = 1
}
}
localObject.foo()
}
// EXPRESSION: test()
// RESULT: 1: I
// EXPRESSION: this.test()
// RESULT: 1: I
@@ -0,0 +1,9 @@
LineBreakpoint created at ceAnonymousObjectThisAsReceiver.kt:9
Run Java
Connected to the target VM
ceAnonymousObjectThisAsReceiver.kt:9
Compile bytecode for test()
Compile bytecode for this.test()
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,19 @@
package ceLambda
fun main(args: Array<String>) {
val a = 1
//Breakpoint!
args.size
}
fun foo(p: () -> Int) = p()
// EXPRESSION: foo { 1 }
// RESULT: 1: I
// EXPRESSION: foo { a }
// RESULT: 1: I
// EXPRESSION: foo { args.size }
// RESULT: 0: I
@@ -0,0 +1,10 @@
LineBreakpoint created at ceLambda.kt:6
Run Java
Connected to the target VM
ceLambda.kt:6
Compile bytecode for foo { 1 }
Compile bytecode for foo { a }
Compile bytecode for foo { args.size }
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,8 @@
package ceLocalClass
fun main(args: Array<String>) {
val a = 1
//Breakpoint!
args.size
}
@@ -0,0 +1,8 @@
class MyClass {
fun test() = 2
}
val a = MyClass()
a.test()
// RESULT: 2: I
@@ -0,0 +1,16 @@
LineBreakpoint created at ceLocalClass.kt:6
Run Java
Connected to the target VM
ceLocalClass.kt:6
Compile bytecode for class MyClass {
fun test() = 2
}
val a = MyClass()
a.test()
// RESULT: 2: I
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,25 @@
package ceLocalClassMembers
fun main(args: Array<String>) {
A().test()
}
class A {
public fun publicFun(): Int = 1
public val publicVal: Int = 1
protected fun protectedFun(): Int = 1
protected val protectedVal: Int = 1
private fun privateFun() = 1
private val privateVal = 1
fun test() {
//Breakpoint!
val a = 1
}
}
@@ -0,0 +1,8 @@
class MyClass {
fun test() = publicFun() + publicVal + protectedFun() + protectedVal + privateFun() + privateFun()
}
val a = MyClass()
a.test()
// RESULT: 6: I
@@ -0,0 +1,16 @@
LineBreakpoint created at ceLocalClassMembers.kt:19
Run Java
Connected to the target VM
ceLocalClassMembers.kt:19
Compile bytecode for class MyClass {
fun test() = publicFun() + publicVal + protectedFun() + protectedVal + privateFun() + privateFun()
}
val a = MyClass()
a.test()
// RESULT: 6: I
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,23 @@
package ceLocalClassWithSuperClass
fun main(args: Array<String>) {
A().test()
}
class A {
public fun publicFun(): Int = 1
public val publicVal: Int = 1
protected fun protectedFun(): Int = 1
protected val protectedVal: Int = 1
private fun privateFun() = 1
private val privateVal = 1
fun test() {
//Breakpoint!
val a = 1
}
}
open class MySuperClass
@@ -0,0 +1,8 @@
class MyClass: MySuperClass() {
fun test() = publicFun()
}
val a = MyClass()
a.test()
// RESULT: 1: I
@@ -0,0 +1,16 @@
LineBreakpoint created at ceLocalClassWithSuperClass.kt:19
Run Java
Connected to the target VM
ceLocalClassWithSuperClass.kt:19
Compile bytecode for class MyClass: MySuperClass() {
fun test() = publicFun()
}
val a = MyClass()
a.test()
// RESULT: 1: I
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,42 @@
package ceMembers
fun main(args: Array<String>) {
A().test()
}
class A {
public fun publicFun(): Int = 1
public val publicVal: Int = 1
protected fun protectedFun(): Int = 1
protected val protectedVal: Int = 1
private fun privateFun() = 1
private val privateVal = 1
fun test() {
//Breakpoint!
val a = 1
}
}
fun foo(p: () -> Int) = p()
// EXPRESSION: foo { publicFun() }
// RESULT: 1: I
// EXPRESSION: foo { publicVal }
// RESULT: 1: I
// EXPRESSION: foo { protectedFun() }
// RESULT: 1: I
// EXPRESSION: foo { protectedVal }
// RESULT: 1: I
// EXPRESSION: foo { privateFun() }
// RESULT: 1: I
// EXPRESSION: foo { privateVal }
// RESULT: 1: I
@@ -0,0 +1,13 @@
LineBreakpoint created at ceMembers.kt:19
Run Java
Connected to the target VM
ceMembers.kt:19
Compile bytecode for foo { publicFun() }
Compile bytecode for foo { publicVal }
Compile bytecode for foo { protectedFun() }
Compile bytecode for foo { protectedVal }
Compile bytecode for foo { privateFun() }
Compile bytecode for foo { privateVal }
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,19 @@
package ceObject
fun main(args: Array<String>) {
//Breakpoint!
args.size
}
interface T {
fun test() = 1
}
// EXPRESSION: (object: T {}).test()
// RESULT: 1: I
// EXPRESSION: (object: T { fun a() = 1 }).a()
// RESULT: 1: I
// EXPRESSION: object: T {}
// RESULT: instance of Generated_for_debugger_class$generated_for_debugger_fun$1(id=ID): LGenerated_for_debugger_class$generated_for_debugger_fun$1;
@@ -0,0 +1,10 @@
LineBreakpoint created at ceObject.kt:5
Run Java
Connected to the target VM
ceObject.kt:5
Compile bytecode for (object: T {}).test()
Compile bytecode for (object: T { fun a() = 1 }).a()
Compile bytecode for object: T {}
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,11 @@
package ceSeveralLambdas
fun main(args: Array<String>) {
//Breakpoint!
args.size
}
fun foo(p: () -> Int) = p()
// EXPRESSION: foo { 1 } + foo { 1 }
// RESULT: 2: I
@@ -0,0 +1,8 @@
LineBreakpoint created at ceSeveralLambdas.kt:5
Run Java
Connected to the target VM
ceSeveralLambdas.kt:5
Compile bytecode for foo { 1 } + foo { 1 }
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,43 @@
package ceSuperAccess
fun main(args: Array<String>) {
A().Inner().test()
}
class A {
public fun publicFun(): Int = 1
public val publicVal: Int = 1
protected fun protectedFun(): Int = 1
protected val protectedVal: Int = 1
private fun privateFun() = 1
private val privateVal = 1
inner class Inner {
fun test() {
//Breakpoint!
val a = publicFun()
}
}
}
fun foo(p: () -> Int) = p()
// EXPRESSION: foo { publicFun() }
// RESULT: 1: I
// EXPRESSION: foo { publicVal }
// RESULT: 1: I
// EXPRESSION: foo { protectedFun() }
// RESULT: 1: I
// EXPRESSION: foo { protectedVal }
// RESULT: 1: I
// EXPRESSION: foo { privateFun() }
// RESULT: 1: I
// EXPRESSION: foo { privateVal }
// RESULT: 1: I
@@ -0,0 +1,13 @@
LineBreakpoint created at ceSuperAccess.kt:20
Run Java
Connected to the target VM
ceSuperAccess.kt:20
Compile bytecode for foo { publicFun() }
Compile bytecode for foo { publicVal }
Compile bytecode for foo { protectedFun() }
Compile bytecode for foo { protectedVal }
Compile bytecode for foo { privateFun() }
Compile bytecode for foo { privateVal }
Disconnected from the target VM
Process finished with exit code 0