Merge branch 'ruby-attach-to-process'
authorValentin Fondaratov <valentin.fondaratov@jetbrains.com>
Tue, 25 Oct 2016 09:22:19 +0000 (12:22 +0300)
committerValentin Fondaratov <valentin.fondaratov@jetbrains.com>
Tue, 25 Oct 2016 09:22:19 +0000 (12:22 +0300)
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/AttachToLocalProcessAction.java

index 592fc34028f6d7bcb8c777807981e1f06011821c..edb7e982c1f9d57c7206c0aaea75aec771905e55 100644 (file)
@@ -394,8 +394,7 @@ public class AttachToLocalProcessAction extends AnAction {
     @Override
     public PopupStep onChosen(AttachItem selectedValue, boolean finalChoice) {
       addToHistory(myProject, selectedValue);
-      selectedValue.startDebugSession(myProject);
-      return FINAL_CHOICE;
+      return doFinalStep(() -> selectedValue.startDebugSession(myProject));
     }
   }