VSC python 디버깅 설정 파일 생성
VSC Python 디버깅 설정 파일
편하게 디버깅 하기 위한 설정 파일 만들기
내가 편하게 쓰려고 저장
-
.vscode
폴더 생성 -
폴더 안에
settings.json
생성{ "python.pythonPath": "/home/jihyun/anaconda3/envs/<env_name>bin/python", // 가상 환경이나 실행 환경의 경로 }
-
폴더 안에
launch.json
생성{ // 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 Debugger: Current File with Arguments", "type": "debugpy", "request": "launch", "cwd": "${workspaceFolder}", "program": "${file}", "console": "integratedTerminal", // "args": ["./demo/data/nuscenes/n015-2018-07-24-11-22-45+0800__LIDAR_TOP__1532402927647951.pcd.bin", // "./configs/centerpoint/centerpoint_pillar02_second_secfpn_head-circlenms_8xb4-cyclic-20e_nus-3d.py", // "./checkpoints/centerpoint_02pillar_second_secfpn_circlenms_4x8_cyclic_20e_nus_20220811_031844-191a3822.pth"], } ] }