We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b060a88 commit 1b764b7Copy full SHA for 1b764b7
docs/guide/summary/vscode.md
@@ -10,7 +10,7 @@ title: vscode
10
11
如果你想在 vscode 中对 fba 进行调试,请创建 `.vscode/launch.json` 文件并添加以下配置
12
13
-```json
+```json5
14
{
15
"version": "0.2.0",
16
"configurations": [
@@ -20,6 +20,12 @@ title: vscode
20
"request": "launch",
21
"module": "uvicorn",
22
"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
+ },
29
"envFile": "${workspaceFolder}/backend/.env",
30
"args": [
31
"backend.main:app",
0 commit comments