Debugger: remove usage of JDIEval during finding local variable in frame because it invokeMethod (loadClass) for find field type which invalidates frame
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
LineBreakpoint created at frameClassObject.kt:15
|
||||
LineBreakpoint created at frameClassObject.kt:16
|
||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !APP_PATH!\classes;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! frameClassObject.FrameClassObjectPackage
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
frameClassObject.kt:15
|
||||
frameClassObject.kt:16
|
||||
Compile bytecode for prop
|
||||
Compile bytecode for myFun()
|
||||
package frameClassObject
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@@ -12,6 +13,7 @@ fun main(args: Array<String>) {
|
||||
class A {
|
||||
class object {
|
||||
val prop = 1
|
||||
fun myFun() = 1
|
||||
}
|
||||
|
||||
fun test() {
|
||||
@@ -30,7 +32,10 @@ fun foo(f: () -> Unit) {
|
||||
|
||||
// EXPRESSION: prop
|
||||
// RESULT: 1: I
|
||||
frame = invoke():15, A$test$1 {frameClassObject}
|
||||
|
||||
// EXPRESSION: myFun()
|
||||
// RESULT: 1: I
|
||||
frame = invoke():16, A$test$1 {frameClassObject}
|
||||
this = this = {frameClassObject.A$test$1@uniqueID}kotlin.Function0<kotlin.Unit>
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user