Watches: Hide 'this' if it's a continuation

This commit is contained in:
Yan Zhulanow
2018-12-14 18:53:04 +09:00
parent 227a7e5609
commit f5a3a46e76
5 changed files with 124 additions and 1 deletions
@@ -0,0 +1,13 @@
package hideContinuationThis
suspend fun main() {
foo()
}
var foo: suspend () -> Unit = {
//Breakpoint!
val a = 5
}
// PRINT_FRAME
// SHOW_KOTLIN_VARIABLES
@@ -0,0 +1,23 @@
LineBreakpoint created at hideContinuationThis.kt:9
Run Java
Connected to the target VM
hideContinuationThis.kt:9
package hideContinuationThis
suspend fun main() {
foo()
}
var foo: suspend () -> Unit = {
//Breakpoint!
val a = 5
}
// PRINT_FRAME
// SHOW_KOTLIN_VARIABLES
frame = invokeSuspend:9, HideContinuationThisKt$foo$1 {hideContinuationThis}
local = result: java.lang.Object = {kotlin.Unit@uniqueID}kotlin.Unit (sp = null)
- No fields to display
Disconnected from the target VM
Process finished with exit code 0