Skip to content

Commit

Permalink
add debug launch in python_exp
Browse files Browse the repository at this point in the history
  • Loading branch information
asdawej committed Apr 13, 2024
1 parent e1c6c12 commit b968020
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CAPI/python_exp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
30 changes: 30 additions & 0 deletions CAPI/python_exp/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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"]
}
]
}
14 changes: 14 additions & 0 deletions CAPI/python_exp/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit b968020

Please sign in to comment.