Use debug context when compiling in debug mode.