DaemonManager is a lightweight, client-side library responsible for spawning, connecting to, and managing the lifecycle of the background zxdb-daemon process.
zxdb-daemon using a platform-specific command-line wrapper (FxCmd).--ready-fd), guarding against premature crashes and startup timeouts./tmp/fx-debug-daemon.sock) and executes DAP session handshake verifications (HelloRequest/StartRequest).SIGTERM) or forceful (SIGKILL) process group cleanup on failures.DaemonManager class, lifecycle exceptions, and helper processes.Downstream tools (such as fx test) import DaemonManager directly to coordinate background debugger attachments:
from daemon_manager import DaemonManager manager = DaemonManager(port=15678, connect_to_existing=True) process = await manager.start()