vscode调试常用选项

在vscode调试过程中,存在一个文件来控制调试的相关选项,位置为mmdetection/.vscode/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",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "env": {"CUDA_VISIBLE_DEVICES":"7"},        //环境变量
            "justMyCode": false,  // 允许调试外部代码文件
            "args": ["configs/yolo/yolov3_mobilenetv2_8xb24-ms-416-300e_voc.py"]  //传参
        }
    ]
}

你可能感兴趣的:(视觉大作战,vscode)