Watches: Hide 'this' if it's a continuation
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
package hideContinuationThis
|
||||
|
||||
suspend fun main() {
|
||||
foo()
|
||||
}
|
||||
|
||||
var foo: suspend () -> Unit = {
|
||||
//Breakpoint!
|
||||
val a = 5
|
||||
}
|
||||
|
||||
// PRINT_FRAME
|
||||
// SHOW_KOTLIN_VARIABLES
|
||||
Vendored
+23
@@ -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
|
||||
Reference in New Issue
Block a user