Skip to content

Commit b0c836b

Browse files
committed
update docs
1 parent 42d0ed4 commit b0c836b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

docs/code/launch.json5

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,16 @@
55
"name": "fba 调试程序",
66
"type": "debugpy",
77
"request": "launch",
8-
"module": "uvicorn",
8+
"program": "${workspaceFolder}/backend/run.py",
99
"console": "integratedTerminal",
10+
"cwd": "${workspaceFolder}/backend",
1011
// 指定 python 解释器,请根据实际情况自行修改
1112
//"python": "${workspaceFolder}/.venv/bin/python", // MacOS or Linux
1213
//"python": "${workspaceFolder}/.venv/Scripts/python.exe", // Windows
1314
"env": {
1415
"PYTHONPATH": "${workspaceFolder};${env:PYTHONPATH}"
1516
},
1617
"envFile": "${workspaceFolder}/backend/.env",
17-
"args": [
18-
"backend.main:app",
19-
"--host",
20-
"0.0.0.0",
21-
"--port",
22-
"8000",
23-
"--reload"
24-
],
2518
"justMyCode": true
2619
},
2720
{

0 commit comments

Comments
 (0)