-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[kotlin][debugger] Don't throw when exception occurred in the completable future #2871
base: master
Are you sure you want to change the base?
[kotlin][debugger] Don't throw when exception occurred in the completable future #2871
Conversation
...otlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/core/KotlinPositionManager.kt
Show resolved
Hide resolved
...otlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/core/KotlinPositionManager.kt
Show resolved
Hide resolved
@nikita-nazarov Could you please attach the error with |
@zuevmaxim
How to reproduce it:
Run the debugger and stop on the breakpoint. Then place a breakpoint inside |
@nikita-nazarov Thank you! I can reproduce the issue, but I cannot understand which object is causing it. I see that the exception is thrown during the processing of some
|
Sometimes when computing classes with inlined code, an ObjectCollectedException could be thrown in on of the futures. This resulted in failure of `CompleatableFuture.allOf(*futures)`. Because of this, smart stepping and breakpoints in inline functions sometimes didn't work, which was easy to observe when debugging on Android.
5d8008a
to
1cfda72
Compare
@zuevmaxim Hi Maksim!
It means that the exception can be thrown anywhere, for example in |
Sometimes when computing classes with inlined code, an ObjectCollectedException could be thrown in on of the futures. This resulted in failure of
CompleatableFuture.allOf(*futures)
. Because of this, smart stepping and breakpoints in inline functions sometimes didn't work, which was easy to observe when debugging on Android.@zuevmaxim