At the moment environments are controlled by JavaScript tag that is deployed. i.e. dev, staging, and production environments have different tags and this determines what code is delivered.
However, often we find ourselves wanting to test our development code against the 'live' environment (obviously before publishing to the live environment!).
This may be because other environments are not available or because other environments are not fully reflective of the live environment.
Please can you consider developing a way to test code in the live environment?
Adobe Target already provides this kind of capability so shouldn't be too hard for you to do