Move debugger test data to the new location
This commit is contained in:
idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels/lCallOnLabeledObj.kt
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
package lCallOnLabeledObj
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val myClass = MyClass()
|
||||
//Breakpoint!
|
||||
val a = 1
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
fun foo() = 1
|
||||
}
|
||||
|
||||
// DEBUG_LABEL: myClass = myClass
|
||||
|
||||
// EXPRESSION: myClass_DebugLabel.foo()
|
||||
// RESULT: 1: I
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at lCallOnLabeledObj.kt:6
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
lCallOnLabeledObj.kt:6
|
||||
Compile bytecode for myClass_DebugLabel.foo()
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
package lIdentifier
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a = "1"
|
||||
val b = "1"
|
||||
val c = "1"
|
||||
val d = "1"
|
||||
val e = "1"
|
||||
//Breakpoint!
|
||||
val f = 1
|
||||
}
|
||||
|
||||
// DEBUG_LABEL: a = 0
|
||||
// DEBUG_LABEL: b = <no_name>
|
||||
// DEBUG_LABEL: c = for
|
||||
// DEBUG_LABEL: d = *
|
||||
// DEBUG_LABEL: e = e-e
|
||||
|
||||
// EXPRESSION: a
|
||||
// RESULT: "1": Ljava/lang/String;
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at lIdentifier.kt:10
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
lIdentifier.kt:10
|
||||
Compile bytecode for a
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
package lSeveralLabels
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a = "str1"
|
||||
val b = "str2"
|
||||
val c = "str3"
|
||||
//Breakpoint!
|
||||
val d = 1
|
||||
}
|
||||
|
||||
// DEBUG_LABEL: a = a
|
||||
// DEBUG_LABEL: b = b
|
||||
// DEBUG_LABEL: c = c
|
||||
|
||||
// EXPRESSION: a_DebugLabel
|
||||
// RESULT: "str1": Ljava/lang/String;
|
||||
|
||||
// EXPRESSION: b_DebugLabel
|
||||
// RESULT: "str2": Ljava/lang/String;
|
||||
|
||||
// EXPRESSION: c_DebugLabel
|
||||
// RESULT: "str3": Ljava/lang/String;
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
LineBreakpoint created at lSeveralLabels.kt:8
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
lSeveralLabels.kt:8
|
||||
Compile bytecode for a_DebugLabel
|
||||
Compile bytecode for b_DebugLabel
|
||||
Compile bytecode for c_DebugLabel
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package lSimple
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a = "str"
|
||||
//Breakpoint!
|
||||
val b = 1
|
||||
}
|
||||
|
||||
// DEBUG_LABEL: a = aLabel
|
||||
|
||||
// EXPRESSION: a
|
||||
// RESULT: "str": Ljava/lang/String;
|
||||
|
||||
// EXPRESSION: aLabel_DebugLabel
|
||||
// RESULT: "str": Ljava/lang/String;
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at lSimple.kt:6
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
lSimple.kt:6
|
||||
Compile bytecode for a
|
||||
Compile bytecode for aLabel_DebugLabel
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Vendored
+101
@@ -0,0 +1,101 @@
|
||||
package ldifferentTypes
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// EXPRESSION: str_DebugLabel
|
||||
// RESULT: "str": Ljava/lang/String;
|
||||
// DEBUG_LABEL: str = str
|
||||
val str = "str"
|
||||
// EXPRESSION: strArray_DebugLabel
|
||||
// RESULT: instance of java.lang.String[1] (id=ID): [Ljava/lang/String;
|
||||
// DEBUG_LABEL: strArray = strArray
|
||||
val strArray = arrayOf("str")
|
||||
|
||||
// EXPRESSION: primitiveArray_DebugLabel
|
||||
// RESULT: instance of java.lang.Integer[1] (id=ID): [Ljava/lang/Integer;
|
||||
// DEBUG_LABEL: primitiveArray = primitiveArray
|
||||
val primitiveArray = arrayOf(1)
|
||||
|
||||
// EXPRESSION: localObj_DebugLabel
|
||||
// RESULT: instance of ldifferentTypes.LdifferentTypesKt$main$localObj$1(id=ID): LldifferentTypes/LdifferentTypesKt$main$localObj$1;
|
||||
// EXPRESSION: localObj_DebugLabel.test()
|
||||
// RESULT: Unresolved reference: test
|
||||
// DEBUG_LABEL: localObj = localObj
|
||||
val localObj = object { fun test() = 1 }
|
||||
// EXPRESSION: localObjArray_DebugLabel
|
||||
// RESULT: instance of ldifferentTypes.LdifferentTypesKt$main$localObj$1[1] (id=ID): [LldifferentTypes/LdifferentTypesKt$main$localObj$1;
|
||||
// EXPRESSION: localObjArray_DebugLabel[0].test()
|
||||
// RESULT: Unresolved reference: test
|
||||
// DEBUG_LABEL: localObjArray = localObjArray
|
||||
val localObjArray = arrayOf(localObj)
|
||||
|
||||
class LocalClass {
|
||||
fun test() = 1
|
||||
}
|
||||
|
||||
// EXPRESSION: localClass_DebugLabel
|
||||
// RESULT: instance of ldifferentTypes.LdifferentTypesKt$main$localClass$1(id=ID): LldifferentTypes/LdifferentTypesKt$main$localClass$1;
|
||||
// EXPRESSION: localClass_DebugLabel.test()
|
||||
// RESULT: Unresolved reference: test
|
||||
// DEBUG_LABEL: localClass = localClass
|
||||
val localClass = object { fun test() = 1 }
|
||||
// EXPRESSION: localClassArray_DebugLabel
|
||||
// RESULT: instance of ldifferentTypes.LdifferentTypesKt$main$localClass$1[1] (id=ID): [LldifferentTypes/LdifferentTypesKt$main$localClass$1;
|
||||
// EXPRESSION: localClassArray_DebugLabel[0].test()
|
||||
// RESULT: Unresolved reference: test
|
||||
// DEBUG_LABEL: localClassArray = localClassArray
|
||||
val localClassArray = arrayOf(localClass)
|
||||
|
||||
// EXPRESSION: aClass_DebugLabel
|
||||
// RESULT: instance of ldifferentTypes.A(id=ID): LldifferentTypes/A;
|
||||
// EXPRESSION: aClass_DebugLabel.test()
|
||||
// RESULT: 1: I
|
||||
// DEBUG_LABEL: aClass = aClass
|
||||
val aClass = A()
|
||||
// EXPRESSION: aClassArray_DebugLabel
|
||||
// RESULT: instance of ldifferentTypes.A[1] (id=ID): [LldifferentTypes/A;
|
||||
// EXPRESSION: aClassArray_DebugLabel[0].test()
|
||||
// RESULT: 1: I
|
||||
// DEBUG_LABEL: aClassArray = aClassArray
|
||||
val aClassArray = arrayOf(aClass)
|
||||
|
||||
// EXPRESSION: innerClass_DebugLabel
|
||||
// RESULT: instance of ldifferentTypes.A$B(id=ID): LldifferentTypes/A$B;
|
||||
// EXPRESSION: innerClass_DebugLabel.test()
|
||||
// RESULT: 1: I
|
||||
// DEBUG_LABEL: innerClass = innerClass
|
||||
val innerClass = A().B()
|
||||
// EXPRESSION: innerClassArray_DebugLabel
|
||||
// RESULT: instance of ldifferentTypes.A$B[1] (id=ID): [LldifferentTypes/A$B;
|
||||
// EXPRESSION: innerClassArray_DebugLabel[0].test()
|
||||
// RESULT: 1: I
|
||||
// DEBUG_LABEL: innerClassArray = innerClassArray
|
||||
val innerClassArray = arrayOf(innerClass)
|
||||
|
||||
// EXPRESSION: nestedClass_DebugLabel
|
||||
// RESULT: instance of ldifferentTypes.A$C(id=ID): LldifferentTypes/A$C;
|
||||
// EXPRESSION: nestedClass_DebugLabel.test()
|
||||
// RESULT: 1: I
|
||||
// DEBUG_LABEL: nestedClass = nestedClass
|
||||
val nestedClass = A.C()
|
||||
// EXPRESSION: nestedClassArray_DebugLabel
|
||||
// RESULT: instance of ldifferentTypes.A$C[1] (id=ID): [LldifferentTypes/A$C;
|
||||
// EXPRESSION: nestedClassArray_DebugLabel[0].test()
|
||||
// RESULT: 1: I
|
||||
// DEBUG_LABEL: nestedClassArray = nestedClassArray
|
||||
val nestedClassArray = arrayOf(nestedClass)
|
||||
|
||||
//Breakpoint!
|
||||
val b = 1
|
||||
}
|
||||
|
||||
class A {
|
||||
inner class B {
|
||||
fun test() = 1
|
||||
}
|
||||
|
||||
class C {
|
||||
fun test() = 1
|
||||
}
|
||||
|
||||
fun test() = 1
|
||||
}
|
||||
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
LineBreakpoint created at ldifferentTypes.kt:88
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ldifferentTypes.kt:88
|
||||
Compile bytecode for str_DebugLabel
|
||||
Compile bytecode for strArray_DebugLabel
|
||||
Compile bytecode for primitiveArray_DebugLabel
|
||||
Compile bytecode for localObj_DebugLabel
|
||||
Compile bytecode for localObjArray_DebugLabel
|
||||
Compile bytecode for localClass_DebugLabel
|
||||
Compile bytecode for localClassArray_DebugLabel
|
||||
Compile bytecode for aClass_DebugLabel
|
||||
Compile bytecode for aClass_DebugLabel.test()
|
||||
Compile bytecode for aClassArray_DebugLabel
|
||||
Compile bytecode for aClassArray_DebugLabel[0].test()
|
||||
Compile bytecode for innerClass_DebugLabel
|
||||
Compile bytecode for innerClass_DebugLabel.test()
|
||||
Compile bytecode for innerClassArray_DebugLabel
|
||||
Compile bytecode for innerClassArray_DebugLabel[0].test()
|
||||
Compile bytecode for nestedClass_DebugLabel
|
||||
Compile bytecode for nestedClass_DebugLabel.test()
|
||||
Compile bytecode for nestedClassArray_DebugLabel
|
||||
Compile bytecode for nestedClassArray_DebugLabel[0].test()
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Reference in New Issue
Block a user