{"id":161,"date":"2019-04-28T05:28:59","date_gmt":"2019-04-28T05:28:59","guid":{"rendered":"https:\/\/docs.sisus.co\/power-inspector\/?p=161"},"modified":"2021-03-24T18:12:02","modified_gmt":"2021-03-24T18:12:02","slug":"developer-mode","status":"publish","type":"post","link":"https:\/\/docs.sisus.co\/power-inspector\/extending-power-inspector\/developer-mode\/","title":{"rendered":"02. Developer Mode"},"content":{"rendered":"<p>Many assertions, console messages and some functionality is stripped away from Power Inspector&#8217;s code, unless a special development mode is enabled.<\/p>\n<p>In normal day-to-day use you do not want this mode active, to ensure that Power Inspector runs as fast as possible with minimal garbage generation, and to avoid messages cluttering up your console window. If however you\u2019re extending Power Inspector with your own code, or debugging an issue, it can sometimes be useful to temporarily enable this mode.<\/p>\n<h5>Enabling Development Mode<\/h5>\n<p>To enable development mode, follow these steps:<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1044\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/EnablingDevelopmentMode.png\" alt=\"\" width=\"598\" height=\"243\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/EnablingDevelopmentMode.png 598w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/EnablingDevelopmentMode-300x122.png 300w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><\/p>\n<ol>\n<li>Click the context menu icon at the top-right corner of the Power Inspector window while holding down the <strong>shift<\/strong> key on your keyboard.<\/li>\n<li>Click the item <strong>Developer Mode &gt; Enabled<\/strong>.<\/li>\n<\/ol>\n<p>Power Inspector will add two new items to the Scripting Define Symbols list in your Player settings: &#8220;<strong>DEV_MODE<\/strong>&#8221; and &#8220;<strong>PI_ASSERTATIONS<\/strong>&#8220;.<br \/>\nYour scripts will then be recompiled, this time with new developer-only code included.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1045\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/DevelopmentModePreprocessorDirectives.png\" alt=\"\" width=\"564\" height=\"272\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/DevelopmentModePreprocessorDirectives.png 564w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/DevelopmentModePreprocessorDirectives-300x145.png 300w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/><\/p>\n<h5>Disabling Development Mode<\/h5>\n<p>To disable development mode, repeat the same steps as when enabling development mode.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many assertions, console messages and some functionality is stripped away from Power Inspector&#8217;s code, unless a special development mode is enabled. In normal day-to-day use you do not want this mode active, to ensure that Power Inspector runs as fast as possible with minimal garbage generation, and to avoid messages cluttering up your console window. ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/docs.sisus.co\/power-inspector\/extending-power-inspector\/developer-mode\/\" title=\"read more\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/161"}],"collection":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":15,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":1855,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/161\/revisions\/1855"}],"wp:attachment":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}