https://kotlinlang.org logo
#coroutines
Title
# coroutines
k

kevinherron

02/19/2020, 10:20 PM
anybody else rarely able to get a breakpoint to work inside a suspending function?
e

elizarov

02/19/2020, 11:04 PM
As far as my experience goes, breakpoints work pretty reliably. If you have specific examples where they don’t, please file a bug to youtrack at http://kotl.in/issue
k

kevinherron

02/19/2020, 11:07 PM
i’ll try to make something reproducable. they almost never work while running our product out of the IDE in debug mode
the only pattern i’ve maybe seen is that they will work if the breakpoint was set before the first time the code in question has been executed
they do not work on subsequent executions
e

elizarov

02/19/2020, 11:08 PM
That is really really strange. Should not really matter.
k

kevinherron

02/19/2020, 11:09 PM
it’s very strange. if i breakpoint outside the first suspending function i can walk my way down into it
but i cannot just break inside the suspending functions
1
m

Mark

02/20/2020, 2:29 AM
Sometimes I notice it doesn’t break if I set a breakpoint when an application is already being debugged i.e. breakpoint needs to be set before app is launched
b

Brendan Weinstein

02/20/2020, 1:40 PM
@kevinherron you can record a screencast for youtrack bug reports.
👍 1
4 Views