https://flyte.org logo
#ask-the-community
VSCode Debugging Local Workflows
# ask-the-community
l

Lou Kratz

02/21/2024, 6:56 PM
Has anyone configured a generic
launch.json
file for debugging local workflow runs? I'm close, but an having trouble avoiding hard-coding the path to
pyflyte
when it's in a virtual environment. Example below. I've tried
env:VIRTUAL_ENV
and other things I found online but no luck :(
Copy code
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debugger: Flyte Workflow",
            "type": "debugpy",
            "request": "launch",
            "program": "pyflyte", // How do we get the full path to this when it's in a virtualenv?
            "console": "integratedTerminal",
            "args": ["run", "src/workflows.py", "${command:pickArgs}"]
        }
    ]
}
2 Views