I remember that before (v.4x) I didn’t need anything special, as we add the option on stage and using the #if !PRODUCTION we could show it everywhere but production environment … I must be missing something simple, as I have no longer a directive and still does not show in stage or production
The Debug Links section is only available in DebugMode (recap: set by default in Debug builds or explicitly with Config.DebugMode = true). In addition, users with the Admin role (or if Config.AdminAuthSecret is enabled) can also view the debug Plugins UI's in production.