You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DAP debugging: Pause action is never enabled (setPauseActionSupported is not called) #2365
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.
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).
Activity
lagergren commentedon Nov 30, 2026
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).