diff --git a/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/XsltCommandLineState.java b/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/XsltCommandLineState.java index 50bd5c5720ed..98d2f63ab5ab 100644 --- a/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/XsltCommandLineState.java +++ b/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/XsltCommandLineState.java @@ -69,10 +69,14 @@ public class XsltCommandLineState extends CommandLineState { super(environment); myXsltRunConfiguration = xsltRunConfiguration; - myIsDebugger = "Debug".equals(environment.getRunner().getRunnerId()); + myIsDebugger = "Debug".equals(environment.getExecutor().getId()); } - @Override + public boolean isDebugger() { + return myIsDebugger; + } + + @Override @NotNull protected OSProcessHandler startProcess() throws ExecutionException { final OSProcessHandler osProcessHandler = createJavaParameters().createOSProcessHandler(); diff --git a/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/XsltRunConfiguration.java b/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/XsltRunConfiguration.java index 8cf2c67d4bc9..dc090ffbbfbf 100644 --- a/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/XsltRunConfiguration.java +++ b/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/XsltRunConfiguration.java @@ -144,8 +144,10 @@ public final class XsltRunConfiguration extends LocatableConfigurationBase imple if (myOutputType == OutputType.CONSOLE) { final HighlightingOutputConsole console = new HighlightingOutputConsole(getProject(), myFileType); - boolean consoleTabAdded = false; - for (XsltRunnerExtension extension : XsltRunnerExtension.getExtensions(this, false /* doesn't matter, xslt debugger uses own flag */)) { + XsltCommandLineState state = startedProcess.getUserData(XsltCommandLineState.STATE); + boolean debug = state != null && state.isDebugger(); + boolean consoleTabAdded = false; + for (XsltRunnerExtension extension : XsltRunnerExtension.getExtensions(this, debug)) { if (extension.createTabs(getProject(), manager, console, startedProcess)) { consoleTabAdded = true; }