cuddly-jelly-27016
08/20/2025, 6:45 AMsrc/flyte/_debug/vscode.py to download, install, and manage a VSCode server and extensions, generate VSCode configuration files, and monitor server activity for interactive debugging sessions.
• Introduced new constants in src/flyte/_debug/constants.py to configure VSCode server behavior, extension URLs, heartbeat monitoring, and debug file names.
• Added async utility for shell command execution in src/flyte/_debug/utils.py to support VSCode server and extension installation.
CLI and Runtime Updates:
• Added a new debug CLI entrypoint src/flyte/_bin/debug.py with a resume command to terminate the VSCode server and resume the Flyte task, including user confirmation.
• Updated src/flyte/_bin/runtime.py to support a --debug flag, trigger VSCode server startup for interactive debugging, and pass context for configuration generation. [1] [2] [3] [4]
Code Bundle and Task Runner Improvements:
• Improved code bundle download logic in src/flyte/_code_bundle/bundle.py to avoid redundant downloads if the bundle already exists. [1] [2]
• Refactored src/flyte/_internal/runtime/taskrunner.py to support loading task inputs from a file for interactive debugging scenarios. [1] [2] [3]
Configuration and Example Updates:
• Added a VSCode-enabled example in examples/basics/vscode.py demonstrating interactive debugging setup and usage.
• Registered the new debug CLI in pyproject.toml and updated configuration for linting and file ownership. [1] [2]
Other minor changes:
• Updated config file path in examples/code-runner/code_runner_agent.py to match new directory structure.
These changes collectively enable Flyte users to debug tasks interactively using VSCode, streamline extension management, and provide a robust CLI for controlling debug sessions.
[Screenshot 2025-08-19 at 9 44 34 PM](https://private-user-images.githubusercontent.com/37936015/479854736-f6fb5831-a3af-42e5-96da-2760cae7ea63.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTU3MzczMzAsIm5iZiI6MTc1NTczNzAzMCwicGF0aCI6Ii8zNzkzNjAxNS80Nzk4NTQ3MzYtZjZmYjU4MzEtYTNhZi00MmU1LTk2ZGEtMjc2MGNhZTdlYTYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwODIxVDAwNDM1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZjYTExOWU1NjU4MjM2YzcxM2FhN2Q1MjYzMDRjZDdlNjc1N2M5ZjlkOThjNmE5NDhmYjdiMTkxYjZlMDJhOTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MwtObp6OEXsMbwMy5UrmUFuln2MPOFsGwtjwhOQoXog)
flyteorg/flyte-sdkcuddly-jelly-27016
08/21/2025, 12:43 AM