Skip to content

Commit 1b764b7

Browse files
committed
update docs
1 parent b060a88 commit 1b764b7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/guide/summary/vscode.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: vscode
1010

1111
如果你想在 vscode 中对 fba 进行调试,请创建 `.vscode/launch.json` 文件并添加以下配置
1212

13-
```json
13+
```json5
1414
{
1515
"version": "0.2.0",
1616
"configurations": [
@@ -20,6 +20,12 @@ title: vscode
2020
"request": "launch",
2121
"module": "uvicorn",
2222
"console": "integratedTerminal",
23+
// 指定 python 解释器
24+
//"python": "${workspaceFolder}/.venv/bin/python", // MacOS or Linux
25+
//"python": "${workspaceFolder}/.venv/Scripts/python.exe", // Windows
26+
"env": {
27+
"PYTHONPATH": "${workspaceFolder};${env:PYTHONPATH}",
28+
},
2329
"envFile": "${workspaceFolder}/backend/.env",
2430
"args": [
2531
"backend.main:app",

0 commit comments

Comments
 (0)