feat(run): debug Python on SSH run targets (#6696)

Debug on a Python configuration with an SSH run target now starts the program under the debugpy bootstrap listening on the host's loopback interface, forwards a local port through the SSH session and attaches with the project root mapped onto the target folder. When the host's interpreter has no debugpy, the IDE's copy is uploaded once to ~/.openidea/debug/<version> (written to a temporary folder and renamed into place so concurrent runs don't see partial files); without a local copy the error offers to install it. The check times out after 30 s, and the run fails if debugpy is not ready 120 s after start. The launch parameter containerDebug is renamed targetDebug.

Closes #6695

Co-authored-by: wildcatDownstairs <[email protected]>
Цей коміт міститься в:
LU XIANGRUIтаwildcatDownstairs authored and GitHub committed 2026-11-29 14:03:48 +08:00
1 джерело f151498e07
коміт df40f0befe
25 files changed
+545 -150

No files matched your search

+1 -1
Переглянути файл
@@ -430,7 +430,7 @@ function debugpyAttach(
});
}
/** A Python program debugged in a run target's container, waiting for the debugger (Run's `debugInContainer`). */
/** A Python program debugged on a run target (SSH host or container), waiting for the debugger (Run's `debugOnTarget`). */
export interface PythonAttachTarget {
name: string;
adapter: "debugpy";