Debugger for inline functions: make sure that context is suspended
This commit is contained in:
+2
-2
@@ -45,7 +45,7 @@ public class KotlinSteppingCommandProvider: JvmSteppingCommandProvider() {
|
|||||||
ignoreBreakpoints: Boolean,
|
ignoreBreakpoints: Boolean,
|
||||||
stepSize: Int
|
stepSize: Int
|
||||||
): DebugProcessImpl.ResumeCommand? {
|
): DebugProcessImpl.ResumeCommand? {
|
||||||
if (suspendContext == null) return null
|
if (suspendContext == null || suspendContext.isResumed) return null
|
||||||
|
|
||||||
val location = computeInManagerThread(suspendContext) {
|
val location = computeInManagerThread(suspendContext) {
|
||||||
it.frameProxy?.location()
|
it.frameProxy?.location()
|
||||||
@@ -80,7 +80,7 @@ public class KotlinSteppingCommandProvider: JvmSteppingCommandProvider() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun getStepOutCommand(suspendContext: SuspendContextImpl?, stepSize: Int): DebugProcessImpl.ResumeCommand? {
|
override fun getStepOutCommand(suspendContext: SuspendContextImpl?, stepSize: Int): DebugProcessImpl.ResumeCommand? {
|
||||||
if (suspendContext == null) return null
|
if (suspendContext == null || suspendContext.isResumed) return null
|
||||||
|
|
||||||
val location = computeInManagerThread(suspendContext) {
|
val location = computeInManagerThread(suspendContext) {
|
||||||
it.frameProxy?.location()
|
it.frameProxy?.location()
|
||||||
|
|||||||
Reference in New Issue
Block a user