Field WatchPoints: add ability to stop at initializer

This commit is contained in:
Natalia Ukhorskaya
2015-06-05 18:28:43 +03:00
parent d7375e0dc4
commit 14f90f15e5
9 changed files with 199 additions and 60 deletions
@@ -0,0 +1,27 @@
package fwInitializer
fun main(args: Array<String>) {
A()
}
fun foo(): Int {
return 1
}
//FieldWatchpoint! (topLevelProp)
val topLevelProp = foo()
class A {
companion object {
//FieldWatchpoint! (companionObjProp)
val companionObjProp = foo()
}
//FieldWatchpoint! (prop)
val prop = foo()
}
// RESUME: 2
// WATCH_FIELD_INITIALISATION: true
// WATCH_FIELD_MODIFICATION: false
// WATCH_FIELD_ACCESS: false