I am working on a game in JavaFX and I'm sending people the compiled game once in a while for them to try out. As I'm still in the middle of developing it, I have several pieces of code intended solely for developing/debugging.
One example is a gamespeed slider that is of great use for me while testing, but it is VERY buggy and can only be used in a specific manner - in other ways, I don't want code like that in the test releases.
What is the best ways of removing such code?
- Surrounding the code with if(Config.DEBUG) (setting a parameter in code) ?
- Using if() but setting parameter in different build configurations?
- Can SVN branches keep sort of code like this? Or should I change to Git?
- Is there any way to use annotations for this?