Skip to content

DAP debugging: Pause action is never enabled (setPauseActionSupported is not called) #2365

Done

Description

@kevinhagel

Version: LSP4IJ 0.30.1, IntelliJ IDEA 2025.3.6.3 (macOS).

What happens: while a DAP debug session runs (program not suspended), IntelliJ offers no Pause: Run > Debugging Actions shows "Resume Program" disabled and no "Pause Program", and the debug toolbar's Resume/Pause button is disabled. A program in an endless loop cannot be paused, only stopped.

Why: IntelliJ enables its Pause action only when the debug process calls XDebugSession.setPauseActionSupported(true). In 2025.3, XDebugSessionImpl.isPauseActionSupported() returns XDebugSessionData.isPauseSupported(), a flag that starts false and is set only by setPauseActionSupported. DAPDebugProcess overrides startPausing() and sends the DAP pause request, but no class in com.redhat.devtools.lsp4ij.dap calls setPauseActionSupported, so startPausing() is never reachable from the UI.

Expected: Pause is available for a running DAP session. DAP has no capability flag for pause (every adapter must answer it), so DAPDebugProcess could call getSession().setPauseActionSupported(true) when the session starts, for example in sessionInitialized() or once the initialize response is in.

Workaround we use: our DAPClient subclass calls debugProcess.getSession().setPauseActionSupported(true) once connectToServer completes. With it, Pause appears and sends pause as expected.

Steps to reproduce: any DAP adapter that supports pause (for example a program with an endless loop under any language's adapter), start a debug session through an LSP4IJ DAP run configuration, and look for Pause while it runs.

Activity

  1. added
    bug
    dap
    on Nov 30, 2026
  2. added this to the 0.30.2 milestone on Nov 30, 2026
  3. lagergren commented on Nov 30, 2026

    @lagergren
    Collaborator

    Thank you for the report, and for the clear analysis! You were right on all counts: no version of LSP4IJ ever said that a DAP session can pause, so Pause was never available. #2366 fixes it for 0.30.2, as you suggested, for debug sessions only (a run without debugging still has no Pause).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdap

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions