Telerik Forums RSShttp://www.telerik.com/urn:uuid:66f19e81-ed7b-424a-a932-f7c00cb67d00http://www.telerik.com/forums/permalink/gZ7xZnvtSkKpMvfADLZ9AAChecking Debug vs. ReleaseHi <span id="ctl10_supportMessagesRepeaterControl_repeaterMessages_ctl00_lblMessageText" class="text">Jason</span>,<br />
<br />
In order to implement your logic in<strong> Telerik Platform</strong> you can use configuration-specific files. When you run a build, <strong>AppBuilder </strong>takes the file that matches the currently set build configuration and includes it in your application package. For example, when you run a build with the <strong>Debug </strong>configuration, <strong>AppBuilder </strong>takes <code>index.debug.html</code> and includes it in your application package as <code>index.html</code>.<br />
<br />
You can find more information on the configuration-specific files implementation <a href="http://docs.telerik.com/platform/appbuilder/cordova/build-configurations/configuration-specific-files">here</a>. In your case you can create a <strong><em>[dataConnectors].debug.js</em></strong> file using your data connectors for the dev environment and <strong><em>[dataConnectors].release.js </em></strong>for the production environment.<br />
<br />
Give this a try and let me know if it helps.<br />
<br />
Regards,<br />
Tina Stancheva <br />
Telerik
<div class="forumBaloonTop">&nbsp;</div>
<div class="forumBaloon">
<p><a href="http://plugins.telerik.com/">Visit the Telerik Verified Plugins Marketplace</a> and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.</p>
</div>
<div class="forumBaloonBottom">&nbsp;</div>urn:uuid:61306258-fa36-4d65-b46c-c2d5ec04a9fehttp://www.telerik.com/forums/permalink/WGIwYTb6ZU20bMLV7ASp_gChecking Debug vs. Release<p>Hi all;</p>
<p>Can someone tell me a quick way to determine if my code is running in debug or release mode? &nbsp;What I'm really trying to do is use one set of data connectors in dev, and another in production.</p>
<p>Thanks,</p>
<p>Jason</p>