You can wrap your controller with #if debug
statement:
#if DEBUG
<your controller code>
#endif
This way you will be able to access the controller only on debug builds.
0
solved Is it possible to to create an environment dependent controller? [closed]