-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
扩展文档:在Windows上使用docker+vscode开发环境 (#449)
- Loading branch information
Showing
11 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
docs/docs/dev-env/how_to_dev_miniob_in_vscodeGUI_by_docker_on_windows.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# 基于Windows+docker容器在本地利用VSCode编辑、开发及调试miniob | ||
## 安装Docker | ||
## clone miniob | ||
## 将clone到的文件映射到docker容器内部 | ||
以上三个部分参考本仓库文档 [在windows上通过docker配置环境并利用vscode调试代码(手把手版)](https://oceanbase.github.io/miniob/dev-env/how_to_dev_in_docker_container_by_vscode_on_windows/) | ||
。 | ||
## 在vscode中启动docker | ||
在侧边栏找到docker插件,点击 | ||
|
||
![docker extension in bar](images/dev_in_vscode_GUI_with_docker_container_based_on_windows_docker.png) | ||
|
||
选择Attach Visual Studio Code,之后一个新的vscode会弹出 | ||
|
||
![how to attach visual studio code](images/dev_in_vscode_GUI_with_docker_container_based_on_windows_attach.png) | ||
## 编译工程代码 | ||
在顶部菜单选择Terminal->Run Task | ||
|
||
![run tasks](images/dev_in_vscode_GUI_with_docker_container_based_on_windows_task.png) | ||
|
||
选择build-debug | ||
|
||
![build debug](images/dev_in_vscode_GUI_with_docker_container_based_on_windows_builddebug.png) | ||
|
||
底部终端会显示进度,到100%即为成功 | ||
|
||
![process of build in terminal](images/dev_in_vscode_GUI_with_docker_container_based_on_windows_process0.png) | ||
|
||
![process finishment of build in terminal](images/dev_in_vscode_GUI_with_docker_container_based_on_windows_process100.png) | ||
|
||
## 在VSCode中调试miniob | ||
(这里仅测试是否可以进行调试) | ||
|
||
进入src->observer->sql->parser->parser_stage.app | ||
|
||
![content of miniob](images/dev_in_vscode_GUI_with_docker_container_based_on_windows_content.png) | ||
|
||
加入断点 | ||
|
||
![add breakpoint](images/dev_in_vscode_GUI_with_docker_container_based_on_windows_breakpoint.png) | ||
|
||
在侧边栏Run and Debug中进行Debug | ||
|
||
![run and debug](images/dev_in_vscode_GUI_with_docker_container_based_on_windows_debug.png) | ||
|
||
代码在断点处停下 | ||
![stop at the breakpoint](images/dev_in_vscode_GUI_with_docker_container_based_on_windows_stop.png) |
Binary file added
BIN
+16.1 KB
...-env/images/dev_in_vscode_GUI_with_docker_container_based_on_windows_attach.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+52.6 KB
.../images/dev_in_vscode_GUI_with_docker_container_based_on_windows_breakpoint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.57 KB
.../images/dev_in_vscode_GUI_with_docker_container_based_on_windows_builddebug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26 KB
...env/images/dev_in_vscode_GUI_with_docker_container_based_on_windows_content.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18 KB
...v-env/images/dev_in_vscode_GUI_with_docker_container_based_on_windows_debug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.1 KB
...-env/images/dev_in_vscode_GUI_with_docker_container_based_on_windows_docker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+41.3 KB
...nv/images/dev_in_vscode_GUI_with_docker_container_based_on_windows_process0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.8 KB
.../images/dev_in_vscode_GUI_with_docker_container_based_on_windows_process100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+197 KB
...ev-env/images/dev_in_vscode_GUI_with_docker_container_based_on_windows_stop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15 KB
...ev-env/images/dev_in_vscode_GUI_with_docker_container_based_on_windows_task.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.