Skip to content

Commit 378af67

Browse files
committed
update docs
1 parent 496d856 commit 378af67

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
135 KB
Loading

docs/.vuepress/sidebar.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const mySidebar: SidebarMulti = {
1010
items: [
1111
{text: '简介', link: 'intro'},
1212
{text: '快速开始', link: 'quick-start'},
13+
{text: 'Visual Studio Code', link: 'vscode'},
1314
{text: '为什么选择我们?', link: 'why'},
1415
{text: '精简版', link: 'fsm'},
1516
]

docs/guide/summary/vscode.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: vscode
3+
---
4+
5+
::: tip
6+
此章节仅限于 vscode 后端开发用户
7+
:::
8+
9+
## DEBUG
10+
11+
以下是 vscode 中的 launch.json 配置
12+
13+
```json5
14+
{
15+
"version": "0.2.0",
16+
"configurations": [
17+
{
18+
"name": "fba 调试程序",
19+
"type": "debugpy",
20+
"request": "launch",
21+
"module": "uvicorn",
22+
"console": "integratedTerminal",
23+
"envFile": "${workspaceFolder}/backend/.env",
24+
"args": [
25+
"backend.main:app",
26+
"--host",
27+
"0.0.0.0",
28+
"--port",
29+
"8000",
30+
"--reload"
31+
],
32+
"justMyCode": true
33+
}
34+
]
35+
}
36+
```
37+
38+
### 效果图
39+
40+
![vscode 调试](/images/vscode_debug.png)

0 commit comments

Comments
 (0)