Can development / production mode be detected at runtime

Can development / production mode be detected at runtime

  
Can whether the server is in development mode or production mode be detected at runtime in an eSpace?

To give more information on why I would like this is we use web service integration for a lot of data transfer in and out of our OutSystems applications. We have development web service URLs for use in development, but in a QA situation it is useful to have all "Get" methods where we are retrieving information actually retrieve from the production environment, but "Put" information we don't want to do.  So I would have something like:
If (production)
     put something
else
    don't put something
Hello Owain!

rather than using an if statement like you're suggesting, you can configure the effective URL in one environment (dev, qa, prd) for each webservice.

Go to ServiceCenter -> Factory -> eSpaces -> Your eSpace -> WebServices

Click on the name and change the Effective URL property. This way you can control the URL that is used when calling the webservice.

Hope it Helps! Cheers