diff --git a/CAPI/python_exp/.gitignore b/CAPI/python_exp/.gitignore index 719c095a..5b72a603 100644 --- a/CAPI/python_exp/.gitignore +++ b/CAPI/python_exp/.gitignore @@ -167,3 +167,6 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + +# launch debug +!.vscode/ \ No newline at end of file diff --git a/CAPI/python_exp/.vscode/launch.json b/CAPI/python_exp/.vscode/launch.json new file mode 100644 index 00000000..c63eba20 --- /dev/null +++ b/CAPI/python_exp/.vscode/launch.json @@ -0,0 +1,30 @@ +{ + // 使用 IntelliSense 了解相关属性。 + // 悬停以查看现有属性的描述。 + // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Team 0", + "type": "debugpy", + "request": "launch", + "program": "./PyAPI/main.py", + "console": "integratedTerminal", + "args": "-I localhost -P 8888 -t 0 -d -o" + }, + { + "name": "Team 1", + "type": "debugpy", + "request": "launch", + "program": "./PyAPI/main.py", + "console": "integratedTerminal", + "args": "-I localhost -P 8888 -t 1 -d -o" + } + ], + "compounds": [ + { + "name": "Compound", + "configurations": ["Team 0", "Team 1"] + } + ] +} \ No newline at end of file diff --git a/CAPI/python_exp/.vscode/settings.json b/CAPI/python_exp/.vscode/settings.json new file mode 100644 index 00000000..d0b2107d --- /dev/null +++ b/CAPI/python_exp/.vscode/settings.json @@ -0,0 +1,14 @@ +{ + "python.analysis.autoImportCompletions": true, + "files.exclude": { + "**/.git": true, + "**/.svn": true, + "**/.hg": true, + "**/CVS": true, + "**/.DS_Store": true, + "**/Thumbs.db": true, + "**/__pycache__": true, + "**/build": true + }, + "python.analysis.typeCheckingMode": "off" +} \ No newline at end of file