Add debug logging on the console
Add option to set environment for the compile