diff --git a/python/python-features-trainer/src/com/intellij/python/featuresTrainer/ift/lesson/essensial/PythonOnboardingTourLesson.kt b/python/python-features-trainer/src/com/intellij/python/featuresTrainer/ift/lesson/essensial/PythonOnboardingTourLesson.kt index 4a6a9af018b9..9b6e8ec34c24 100644 --- a/python/python-features-trainer/src/com/intellij/python/featuresTrainer/ift/lesson/essensial/PythonOnboardingTourLesson.kt +++ b/python/python-features-trainer/src/com/intellij/python/featuresTrainer/ift/lesson/essensial/PythonOnboardingTourLesson.kt @@ -225,17 +225,6 @@ class PythonOnboardingTourLesson : text(PythonLessonsBundle.message("python.onboarding.stop.debugging", icon(AllIcons.Actions.Suspend))) restoreIfModified(sample) - addFutureStep { - val process = XDebuggerManager.getInstance(project).currentSession?.debugProcess - val console = process?.createConsole() as? DuplexConsoleView<*, *> - if (console != null) { - // When debug process terminates the console tab become activated and brings focus. - // So, we need to finish this task only after tab is activated. - // And then focus will be returned to editor in the start of completion tasks. - console.addSwitchListener(DuplexConsoleListener { completeStep() }, taskDisposable) - } - else completeStep() - } stateCheck { XDebuggerManager.getInstance(project).currentSession == null }