Hi, I'm trying to set up the debugging setting, a...
# questions
a
Hi, I'm trying to set up the debugging setting, although it seems that the debugger is not able to fetch the right settings.
Copy code
(kedro-midtermforecastdev) W:\Cargo\Development\Projects\MidtermForecastDev> cmd /C "c:\Miniconda\envs\kedro-midtermforecastdev\python.exe c:\Users\afiq.che\.vscode\extensions\ms-python.debugpy-2024.0.0-win32-x64\bundled\
libs\debugpy\adapter/../..\debugpy\launcher 56363 -- -m kedro run "
Usage: python -m kedro.python -m kedro [OPTIONS] COMMAND [ARGS]...
Try 'python -m kedro.python -m kedro -h' for help.

Error: No such command 'run'.
Copy code
(kedro-midtermforecastdev) W:\Cargo\Development\Projects\MidtermForecastDev> cd $PYTHONPATH:W:\Cargo\Development\Projects\MidtermForecastDev\spaceflights\ && cmd /C "c:\Miniconda\envs\kedro-midtermforecastdev\python.exe c
:\Users\afiq.che\.vscode\extensions\ms-python.debugpy-2024.0.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher 56388 -- -m kedro run "
The specified path is invalid.

(kedro-midtermforecastdev) W:\Cargo\Development\Projects\MidtermForecastDev>
Below is the launch.json
Copy code
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: <https://go.microsoft.com/fwlink/?linkid=830387>
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Kedro Run",
            "type": "debugpy",
            "request": "launch",
            "console": "integratedTerminal",
            // "cwd": "$PYTHONPATH:W:\\Cargo\\Development\\Projects\\MidtermForecastDev\\spaceflights\\",
            "module": "kedro",
            "args": [
                "run",
                // "--namespace",
                // "Air"
            ]
            // Any other arguments should be passed as a comma-seperated-list
            // e.g "args": ["run", "--pipeline", "pipeline_name"]
            // kedro run --namespace=Air --pipeline=data_science --runner=ThreadRunner
        }
    ]
}
I'm using this doc page https://docs.kedro.org/en/stable/development/set_up_vscode.html#debugging as reference
d
Hi Afiq, trying to understand, are you using a Win? But looks like $PYTHONPATH is for Mac/Linux?
a
@Dmitry Sorokin, ah, I'm using Win server