调试——分步模式
-
先修科目
积木按顺序排列
当你运行一个程序,所有积木按照其“顺序”执行。也就是说,所有积木按照在程序中的位置自顶向下一个个执行。
比方说,排在第1步的积木先执行,然后第2步的积木执行,以此类推。
https://cdn.creaticode.com/scratch-gui-projects/forum/16cdde2c-e3a0-4010-8e28-2df5311ffef9.png" width="750" style="">
分步模式
理解积木顺序执行的最好办法就是用“分步模式”。在该模式中,积木每次只执行一个。
https://cdn.creaticode.com/scratch-gui-projects/forum/9ab4afe9-89fe-43df-ba3a-7134ed7fcb9b.png" width="700" style="">
开启分步模式
点击桔色三角形
https://cdn.creaticode.com/scratch-gui-projects/forum/a87ba1b6-3ee8-4795-b87c-12d770551465.PNG" width="150" style="">即可开启分步模式,**再次点击即可运行下一个积木**。
每次只运行一个积木,用绿色突出显示。
https://cdn.creaticode.com/scratch-gui-projects/forum/86ba3f83-369e-4bb0-9d9d-1e4324db0513.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
停止分步模式或退出分步模式
点击红色按钮
https://cdn.creaticode.com/scratch-gui-projects/forum/07eda132-a410-4a28-bb5a-35af9af9d0b7.png" width="200" style=""> 即可退出分步模式,点击绿旗即可正常运行程序。
https://cdn.creaticode.com/scratch-gui-projects/forum/667ff7fc-330a-4196-87c7-4b7491915d5a.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login