https://kotlinlang.org logo
#flow
Title
# flow
e

eburke

11/17/2020, 3:45 PM
I’m seeing an issue with Kotlin 1.4.10 and coroutines v1.4.1 on Android, where a breakpoint inside
Flow.map
won’t fire properly.
Copy code
myFlow
   .map { input ->
        someFunction(input)  // breakpoint here doesn't fire
   }
However, if I extract that method, it fires:
Copy code
val transform: suspend (input: ...) -> ... = {
    someFunction(input)  // breakpoint here fires!
}

myFlow
    .map(transform)
has anyone seen this?
e

elizarov

11/17/2020, 7:13 PM
It looks to be specific to your case. It does not reproduce for me in simple cases. If it reliably reproduces for you it means it is a bug in debugger. It would be great to report it to https://kotl.in/issue
👍 2
3 Views