Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nikita-nazarov
Copy link
Contributor

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

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.
@@ -610,9 +610,9 @@ class KotlinPositionManager(private val debugProcess: DebugProcess) : MultiReque
private fun getClassesWithInlinedCode(candidatesWithInline: List<String>, line: Int): List<ReferenceType> {
val candidatesWithInlineInternalNames = candidatesWithInline.map { it.fqnToInternalName() }
val futures = debugProcess.virtualMachineProxy.allClasses().map { type ->
hasInlinedLinesToAsync(type, line, candidatesWithInlineInternalNames).thenApply { hasInlinedLines ->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • [ ]

@@ -610,9 +610,9 @@ class KotlinPositionManager(private val debugProcess: DebugProcess) : MultiReque
private fun getClassesWithInlinedCode(candidatesWithInline: List<String>, line: Int): List<ReferenceType> {
val candidatesWithInlineInternalNames = candidatesWithInline.map { it.fqnToInternalName() }
val futures = debugProcess.virtualMachineProxy.allClasses().map { type ->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
val futures = debugProcess.virtualMachineProxy.allClasses().map { type ->
val futures = debugProcess.virtualMachineProxy.allClasses().map { type ->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants