본문 바로가기
vscode

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

by 자동매매 2023. 3. 10.

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}" // 추가

        }
    ]
}

'vscode' 카테고리의 다른 글

[ vscode ] VScode 환경설정  (0) 2023.04.23
vscode 단축키  (0) 2023.04.10
UML 다이어그램  (0) 2023.03.24
pyqt5-tools 설치 오류  (0) 2023.03.11

댓글