{"_id":"57b96d6c1d08500e00bf8228","category":{"_id":"57b96d6b1d08500e00bf81d3","project":"54861bb654b3ce0b00367292","version":"57b96d6b1d08500e00bf81d1","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-12-08T21:55:25.679Z","from_sync":false,"order":1,"slug":"1-setup","title":"iOS / App Triggers"},"parentDoc":null,"version":{"_id":"57b96d6b1d08500e00bf81d1","__v":7,"project":"54861bb654b3ce0b00367292","createdAt":"2016-08-21T08:59:23.326Z","releaseDate":"2016-08-21T08:59:23.326Z","categories":["57b96d6b1d08500e00bf81d2","57b96d6b1d08500e00bf81d3","57b96d6b1d08500e00bf81d4","57b96d6b1d08500e00bf81d5","57b96d6b1d08500e00bf81d6","57b96d6b1d08500e00bf81d7","57b96d6b1d08500e00bf81d8","57b96d6b1d08500e00bf81d9","57b96d6b1d08500e00bf81da","57b96d6b1d08500e00bf81db","57b96d6b1d08500e00bf81dc","57b97748306b9b0e001dd53f","57d12c6c1227b40e0044908a","57d51ad68191880e008bb51b","57d52b5cf350090e00fe073e","57d5468a17b492170053a3f0","57df9df05927cb0e002bce1e"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"","version_clean":"4.0.0","version":"4.0"},"__v":0,"user":"54861b9f3681d914006992a4","project":"54861bb654b3ce0b00367292","updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-12-17T11:39:20.836Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":9,"body":"Development mode is activated by default after initiating a session with negative `inProduction` value.\n\nDRAFT\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"[ECSessionParams createInProduction:NO];\",\n      \"language\": \"objectivec\"\n    },\n    {\n      \"code\": \"ECSessionParams .createInProduction(false)\",\n      \"language\": \"swift\"\n    }\n  ]\n}\n[/block]\nWhile in development mode, the following will apply:\n\n* All draft segments will be included while the segment response is being calculated.\n* All user interactions (beside events and syncs) will be excluded from your analytics calculations. \n[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"Before uploading the app to the app store\",\n  \"body\": \"Don't forget to change the inProduction to possitive value\"\n}\n[/block]\nWhile in production mode the following logic apply:\n\n* During the segment response calculation phase, only production segments will be analyzed.\n* All user interactions will be analyzed. \n* Any new definition for either a moment,  a BackView experience, cases or dynamic objects will not apply.","excerpt":"","slug":"15-debug-mode","type":"basic","title":"Development Mode"}
Development mode is activated by default after initiating a session with negative `inProduction` value. DRAFT [block:code] { "codes": [ { "code": "[ECSessionParams createInProduction:NO];", "language": "objectivec" }, { "code": "ECSessionParams .createInProduction(false)", "language": "swift" } ] } [/block] While in development mode, the following will apply: * All draft segments will be included while the segment response is being calculated. * All user interactions (beside events and syncs) will be excluded from your analytics calculations. [block:callout] { "type": "danger", "title": "Before uploading the app to the app store", "body": "Don't forget to change the inProduction to possitive value" } [/block] While in production mode the following logic apply: * During the segment response calculation phase, only production segments will be analyzed. * All user interactions will be analyzed. * Any new definition for either a moment, a BackView experience, cases or dynamic objects will not apply.