This does sound fun, but one should NEVER debug the code. All debugging should be done at the program design "stage.
Back to the drawing board" as the saying goes. You go back and debug the DESIGN.
If you don't have a design you are not a programmer you are a hacker.