mix IDE M2

Integrated debugger;
Hit F5 and you can step forwards/backwards through execution.

why?