Add tests for tracing frame
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
LineBreakpoint created at frameThis0Ext.kt:14
|
||||
!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!;!RT_JAR! frameThis0Ext.FrameThis0ExtPackage
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
frameThis0Ext.kt:13
|
||||
package frameThis0Ext
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
A().test()
|
||||
}
|
||||
|
||||
class A {
|
||||
val prop1 = 1
|
||||
|
||||
fun AExt.testExt() {
|
||||
val val1 = 1
|
||||
foo {
|
||||
//Breakpoint!
|
||||
prop1 + prop2 + val1
|
||||
}
|
||||
}
|
||||
|
||||
fun test() {
|
||||
AExt().testExt()
|
||||
}
|
||||
}
|
||||
|
||||
class AExt {
|
||||
val prop2 = 1
|
||||
}
|
||||
|
||||
fun foo(f: () -> Unit) {
|
||||
f()
|
||||
}
|
||||
|
||||
// PRINT_FRAME
|
||||
frame = invoke():14, A$testExt$1 {frameThis0Ext}
|
||||
this = this = {frameThis0Ext.A$testExt$1@uniqueID}kotlin.Function0<kotlin.Unit>
|
||||
field = this$0: frameThis0Ext.A = {frameThis0Ext.A@uniqueID}
|
||||
field = prop1: int = 1
|
||||
field = receiver$0: frameThis0Ext.AExt = {frameThis0Ext.AExt@uniqueID}
|
||||
field = prop2: int = 1
|
||||
field = $val1: int = 1
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
Reference in New Issue
Block a user