Evaluate expression: find local variable using callText from extract function instead of function parameter names
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at innerClass.kt:13
|
||||
!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! innerClass.InnerClassPackage
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
innerClass.kt:13
|
||||
Compile bytecode for baseFun(innerProp)
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,21 @@
|
||||
package innerClass
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
MyClass().MyInnerClass().innerFun()
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
inner class MyInnerClass {
|
||||
val innerProp = 1
|
||||
|
||||
fun innerFun() {
|
||||
//Breakpoint!
|
||||
baseFun(innerProp)
|
||||
}
|
||||
}
|
||||
|
||||
fun baseFun(i: Int) = i
|
||||
}
|
||||
|
||||
// EXPRESSION: baseFun(innerProp)
|
||||
// RESULT: 1: I
|
||||
Reference in New Issue
Block a user