vscode

파일 실행 경로 변경(디버그) -> 현재 파일 경로

자동매매 2023. 3. 10. 18:14

1. launch.json 생성

2. 다음 추가

{
    // 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: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": true,
            "cwd": "${fileDirname}" // 추가

        }
    ]
}