Is there any special trick about breakpoints in co...
# coroutines
g
Is there any special trick about breakpoints in coroutines? The test is green, but the breakpoint point doesn't stop:
Copy code
@Test
    fun test() {
        runBlocking {
            val channel = produce<Int> { channel.send(42) }
            channel.consumeEach { assertEquals(42, it) } // <--- break point is on this lambda
        }
    }
P.S. I'm using
Dispatchers.setMain()
on android
s
Same here. It is hit or miss with breakpoints...
e
Please, file an issue to http://kotl.in/issue with your test code
👍 1
g
@streetsofboston do you mind to attach your example as well? I'll create an issue with both in the description. Is it also channels related?