Enabling Debugging:
 
To turn on debugging, include the following line at the top of your code:
 
  • debug on
  • Also, when selecting cybugs in the battle list, click on the cybug which you want to debug. The indicator to its left should turn yellow to show that it is selected.