Debug It! level 1

Debug IT!Home work – Watch the video on Remixing

Debugging History and Strategy

History

The teH96566krm debugging was coined by one of the first computer programers,  Grace Hopper  after she found a moth in the hardware (physical parts of the computer).  We will assume  our bugs are software (scripts) and will not be  taking apart our computers.

Strategy

Don’t make the problem!  Add code incrementally (do a little at a time) and test as you go.
But if something starts to act as you did not expect it to remember Debugging is fun!
  1. Be patient.
  2. Try to say what excatly is not working.
  3. Break it down, take out a pieces and try it individually.
  4. Click on a single script.
  5. Look over the code line by line
  6. Ask classmate for help.
  7. Take breaks.
  8. Remember there can always be more then one problem so do not assume you did not fix it, you may just not have fixed all of it.
  9. Make sure you didn’t break anything else
  10. go to official scratch help http://scratch.mit.edu/discuss/7/

Test out your debugging skills and remix the following projects to fix them.

When the green flag is clicked, both Gobo and Scratch Cat should start dancing. But only Scratch Cat starts dancing! How do we fix the program?

In this project, when the green flag is clicked, the Scratch Cat should start on the left side of the stage, say something about being on the left side, glide to the right side of the stage, and say something about being on the right side. It works the first time the green flag is clicked, but not again. How do we fix the program?
The Scratch Cat should do a flip when the space key is pressed. But when the space key is pressed, nothing happens! How do we fix the program?

Highlight for a hint:   The sprites can move so quickly the human eye can not detect it

In this project, the Scratch Cat should pace back and forth across the stage, when the Scratch Cat is clicked. But the Scratch Cat is flipping out — and is walking upside down! How do we fix the program?

 

Debug It! 5
In this project, when the green flag is clicked, the Scratch Cat should say ‘Meow, meow, meow!’ in a speech bubble and as a sound. But the speech bubble happens before the sound — and the Scratch Cat only makes one ‘Meow’ sound! How do we fix the program?

NEXT-> Backdrops

 

One thought on “Debug It! level 1

Comments are closed.