Skip to content

Commit

Permalink
#2648 enabled pause debugging action
Browse files Browse the repository at this point in the history
Previously it was enabled by default, changed in JetBrains/intellij-community@e9a81e6

Intended behavior is - the button is always enabled to promote the feature, but if user presses it when action not available, he gets a notification with an explanation.

Fixes #2648
  • Loading branch information
hurricup committed Feb 26, 2024
1 parent b1ece27 commit 469ad43
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2023 Alexandr Evstigneev
* Copyright 2015-2024 Alexandr Evstigneev
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -62,7 +62,8 @@ public class PerlDebugProcess extends XDebugProcess {

public PerlDebugProcess(@NotNull XDebugSession session, PerlDebugProfileStateBase state, ExecutionResult executionResult) {
super(session);
this.myExecutionResult = executionResult;
session.setPauseActionSupported(true);
myExecutionResult = executionResult;
myDebugThread = new PerlDebugThread(session, state, executionResult);
myDebugProfileState = state;
myDebugThread.start();
Expand Down

0 comments on commit 469ad43

Please sign in to comment.