compiles and runtime debugs