![]() ![]() Another option is to separate current debugger behaviour and conventional behaviour (breakpoints + line based stepping) into two separate modes. ![]() ![]() Thonny is an integrated development environment (IDE). If one want's to prepare students for conventional debuggers, then maybe it's useful to create another step command which mimics their Step Over (ie it steps one line at the time). To edit the file with Cloud Shell Editor, use this command: cloudshell edit main. Thonny: The Beginner-Friendly Python Editor. One option is to introduce new command, another option is to reuse "Step out" command.Ī related theme is line-based stepping (instead of program structure based stepping). In order to get a practical idea of how you can use Thonnys features, youre going to create and debug a program. With breakpoints there is also need for Continue command. If you want to run line-by-line, you can either comment out the lines you don't want to run (cmd+/ will usually comment out all the lines currently selected by the cursor) or put in some breakpoints and run it in debug mode. If not then it stops before first statement, otherwise runs to first breakpoint The single Debug command first checks whether there are any breakpoints set in main file.D: Click on the floppy disk icon to save the code. C: If your Raspberry Pi Pico is already plugged into your computer, you can open files that already exist on your computer or Pico. B: This paper icon allows you to create a new file. There will be another Debug command which starts the program and runs until first breakpoint A: The menu bar containing New, Save, Edit, View, Run, Debug, etc.I see two options for adding breakpoints feature: I'd like to keep the possibility of Debug command starting the program and stopping before first statement. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |