Forráskód Böngészése

【添加】直接在开发板上运行文件调试功能介绍

SummerGift 6 éve
szülő
commit
4585895bd7

+ 16 - 4
docs/MicroPythonPlug-in/README.md

@@ -90,12 +90,18 @@ MicroPython 插件提供丰富的示例代码,可在左侧活动栏中查看
 
 
 ![example_code](assets/check_example.png)
 ![example_code](assets/check_example.png)
 
 
-### 在设备上运行 MicroPython 文件
+### 下载并在开发板上运行 MicroPython 文件
 
 
 开发板连接成功后,在示例代码文件上单击右键,在菜单中选择 `下载并在设备上运行该 MicroPython 文件 `,即可将示例文件下载到开发板中并运行,如下图所示:
 开发板连接成功后,在示例代码文件上单击右键,在菜单中选择 `下载并在设备上运行该 MicroPython 文件 `,即可将示例文件下载到开发板中并运行,如下图所示:
 
 
 ![run_example](assets/run_example.gif)
 ![run_example](assets/run_example.gif)
 
 
+### 直接在开发板上运行  MicroPython 文件(调试神器)
+
+该功能用于快速调试单个文件,频繁应用在调试代码的过程中,当我们在一个单独的文件中编写测试程序时,使用该功能可以将当前 python 文件下载到开发板的内存中运行,达到快速调试的效果。
+
+![run_example](assets/direct_run_files.gif)
+
 ### 在开发板上运行 MicroPython 代码片段
 ### 在开发板上运行 MicroPython 代码片段
 
 
 如果只是想进行代码量不大的代码调试,而不想将文件下载到开发板上,那么可以使用 **代码片段** 功能。在编辑器中选中想要运行的代码片段,然后在右键下拉菜单中选择 `在设备上执行选中的 MicroPython 代码` 选项,即可在 REPL 环境中运行所选代码。
 如果只是想进行代码量不大的代码调试,而不想将文件下载到开发板上,那么可以使用 **代码片段** 功能。在编辑器中选中想要运行的代码片段,然后在右键下拉菜单中选择 `在设备上执行选中的 MicroPython 代码` 选项,即可在 REPL 环境中运行所选代码。
@@ -165,7 +171,7 @@ If you want to use the MicroPython autocompletion feature (you can skip the next
 
 
 3. Install Python3 on your PC and add it to the system environment variables as instructed by the Python plug-in
 3. Install Python3 on your PC and add it to the system environment variables as instructed by the Python plug-in
 
 
-   ![Python plug](assets/install_python_plug.png)
+   ![Python plug](assets/install_python_plug_en.png)
 
 
 If you already have the above plug-ins and programs installed on your PC, you can skip this preparation step.
 If you already have the above plug-ins and programs installed on your PC, you can skip this preparation step.
 
 
@@ -195,14 +201,20 @@ You can connect to the MicroPython development board by clicking the connection
 
 
 The MicroPython plug-in provides a wealth of sample code and library files to view in the left active bar.
 The MicroPython plug-in provides a wealth of sample code and library files to view in the left active bar.
 
 
-![example_code](assets/check_example.png)
+![example_code](assets/check_example_en.png)
 
 
-### Run the MicroPython file on the device
+### Download and run the MicroPython file on the development board
 
 
 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:
 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:
 
 
 ![run_example](assets/en_run_example_files.gif)
 ![run_example](assets/en_run_example_files.gif)
 
 
+### Run MicroPython files directly on the development board (kind for debug)
+
+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.
+
+![run_example](assets/direct_run_files_en.gif)
+
 ### Run MicroPython code snippets on the development board
 ### Run MicroPython code snippets on the development board
 
 
 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.
 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.

BIN
docs/MicroPythonPlug-in/assets/check_example_en.png


BIN
docs/MicroPythonPlug-in/assets/direct_run_files.gif


BIN
docs/MicroPythonPlug-in/assets/direct_run_files_en.gif


BIN
docs/MicroPythonPlug-in/assets/install_python_plug_en.png