The best way to debug a program is to make it work.
The most important tool an artist has is curiosity.