Skip to content

Latest commit

 

History

History
52 lines (49 loc) · 1.18 KB

File metadata and controls

52 lines (49 loc) · 1.18 KB

DEBUG

Launch json and Tasks json

mkdir -p .vscode
echo '{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug",
            "type": "debugpy",
            "request": "launch",
            "program": "${workspaceFolder}/src/main.py",
            "console": "integratedTerminal",
            "justMyCode": true,
            "env": {
                "SJ_LOG_PATH": "${workspaceFolder}/logs/shioaji.log",
                "SJ_CONTRACTS_PATH": "${workspaceFolder}/data"
            },
            "envFile": "${workspaceFolder}/.env",
            "python": "${command:python.interpreterPath}",
            "pythonArgs": [
                "-BO"
            ],
            "preLaunchTask": "Check venv",
            "internalConsoleOptions": "neverOpen"
        }
    ]
}
' > .vscode/launch.json

echo '{
    "version": "2.0.0",
    "cwd": "${workspaceFolder}",
    "type": "shell",
    "presentation": {
        "close": true
    },
    "tasks": [
        {
            "label": "Check venv",
            "command": "",
            "args": [
                "source",
                "venv/bin/activate;",
            ],
        },
    ]
}
' > .vscode/tasks.json