Add a debug mode for project mode and other languages