Printing text to the debug log is a good way to keep track of what’s going on behind the scenes in your game, during development.
In the screenshot, I logged custom text that looks like it’s from an old Dragon Quest game. These print as you jump on the bat.
Bat takes 1 damage
Bat is defeated!
Bat drops Bone