본문 바로가기
Study/프로그래밍

vscode로 arguments세팅 config 예시

by 김카비 2021. 11. 4.
{
    // 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: train.py",
            "type": "python",
            "request": "launch",
            "program": "${workspaceFolder}/train.py",
            "args" : ["--base_config", "my_config.json", "--output", "my_out_dir", "--training.num_gpus", "8"]
        }
    ]
}

 

프로젝트 root path의 

.vscode/luanch.json 의 내용을 이런식으로 세팅해서 사용 할 수 있다.

댓글