C++ DEBUG
"version": "0.2.0",
"configurations": [
{
"name": "TEST",
"type": "cppdbg",
"request": "launch",
"program": "/path/build/可执行文件名",
"stopAtEntry": true,
"cwd": "env path",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
}
],
"args": ["--flagfile=*****"],
}
]
}
Python DEBUG
{
"configurations": [
{
"name": "Python: File",
"type": "python",
"request": "launch",
"cwd": "env path",
"program": "/python3.7/site-packages/torch/distributed/launch.py",
"console": "integratedTerminal",
"args": [
"--nproc_per_node","1",
"main.py",
"--master_port","12346","main.py",
"--batch-size","22"],
"env": {"CUDA_VISIBLE_DEVICES":"0"},
}
]
}