Skip to content

Commit 4585895

Browse files
committed
【添加】直接在开发板上运行文件调试功能介绍
1 parent 7da95a8 commit 4585895

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

docs/MicroPythonPlug-in/README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,18 @@ MicroPython 插件提供丰富的示例代码,可在左侧活动栏中查看
9090

9191
![example_code](assets/check_example.png)
9292

93-
### 在设备上运行 MicroPython 文件
93+
### 下载并在开发板上运行 MicroPython 文件
9494

9595
开发板连接成功后,在示例代码文件上单击右键,在菜单中选择 `下载并在设备上运行该 MicroPython 文件 `,即可将示例文件下载到开发板中并运行,如下图所示:
9696

9797
![run_example](assets/run_example.gif)
9898

99+
### 直接在开发板上运行 MicroPython 文件(调试神器)
100+
101+
该功能用于快速调试单个文件,频繁应用在调试代码的过程中,当我们在一个单独的文件中编写测试程序时,使用该功能可以将当前 python 文件下载到开发板的内存中运行,达到快速调试的效果。
102+
103+
![run_example](assets/direct_run_files.gif)
104+
99105
### 在开发板上运行 MicroPython 代码片段
100106

101107
如果只是想进行代码量不大的代码调试,而不想将文件下载到开发板上,那么可以使用 **代码片段** 功能。在编辑器中选中想要运行的代码片段,然后在右键下拉菜单中选择 `在设备上执行选中的 MicroPython 代码` 选项,即可在 REPL 环境中运行所选代码。
@@ -165,7 +171,7 @@ If you want to use the MicroPython autocompletion feature (you can skip the next
165171

166172
3. Install Python3 on your PC and add it to the system environment variables as instructed by the Python plug-in
167173

168-
![Python plug](assets/install_python_plug.png)
174+
![Python plug](assets/install_python_plug_en.png)
169175

170176
If you already have the above plug-ins and programs installed on your PC, you can skip this preparation step.
171177

@@ -195,14 +201,20 @@ You can connect to the MicroPython development board by clicking the connection
195201

196202
The MicroPython plug-in provides a wealth of sample code and library files to view in the left active bar.
197203

198-
![example_code](assets/check_example.png)
204+
![example_code](assets/check_example_en.png)
199205

200-
### Run the MicroPython file on the device
206+
### Download and run the MicroPython file on the development board
201207

202208
After successful connection of the development board, right click on the sample code file, select 'download and run the MicroPython file' on the device from the menu, and the sample file can be downloaded to the development board and run, as shown below:
203209

204210
![run_example](assets/en_run_example_files.gif)
205211

212+
### Run MicroPython files directly on the development board (kind for debug)
213+
214+
This feature is used to quickly debug a single file. It is frequently used in the process of debugging code. When we write the test program in a separate file, we can download the current python file into the memory of the development board and run it.
215+
216+
![run_example](assets/direct_run_files_en.gif)
217+
206218
### Run MicroPython code snippets on the development board
207219

208220
If you just want to debug a small amount of code without downloading files to the development board, you can use the **code snippet** function.You can run the selected code in the REPL environment by selecting the snippet you want to run in the editor, and then selecting the 'execute the selected MicroPython code' option on the device from the right-click menu.
37.4 KB
Loading
438 KB
Loading
527 KB
Loading
78.6 KB
Loading

0 commit comments

Comments
 (0)