{"id":215,"date":"2019-04-28T19:01:05","date_gmt":"2019-04-28T19:01:05","guid":{"rendered":"https:\/\/docs.sisus.co\/power-inspector\/?p=215"},"modified":"2021-03-24T17:34:52","modified_gmt":"2021-03-24T17:34:52","slug":"debug-mode","status":"publish","type":"post","link":"https:\/\/docs.sisus.co\/power-inspector\/features\/debug-mode\/","title":{"rendered":"14. Debug Mode+"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1347\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/using-debug-mode-plus.gif\" alt=\"\" width=\"666\" height=\"360\" \/><\/p>\n<h1>What is Debug Mode+?<\/h1>\n<p>When Debug Mode+ is active, <strong>all<\/strong> components and <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/members\/\">class members<\/a><\/strong> are shown in <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/inspector-view\/\">inspector view<\/a><\/strong>. This includes:<\/p>\n<ul>\n<li>All <strong>non-serialized<\/strong> fields.<\/li>\n<li>All fields containing the <strong><a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/HideInInspector.html\" target=\"_blank\" rel=\"noopener noreferrer\">HideInInspector attribute<\/a><\/strong>.<\/li>\n<li>All <strong>properties<\/strong>.<\/li>\n<li>All <strong>methods<\/strong>.<\/li>\n<li>All <strong>hidden components<\/strong> (when Debug Mode+ has been enabled for the whole view using the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/view-menu\/\">view menu<\/a><\/strong>).<\/li>\n<li>Previously unsupported types: dictionaries, multi-dimensional arrays, interfaces, delegates&#8230;<\/li>\n<\/ul>\n<p>The only thing not revealed is members with the <a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/api\/system.obsoleteattribute\" target=\"_blank\" rel=\"noopener noreferrer\">Obsolete attribute<\/a>. This is to avoid exceptions being thrown when they are accessed.<\/p>\n<blockquote><p><strong>Note:<\/strong> Debug Mode+ also works great when <a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/13-inspecting-static-members\/\"><strong>inspecting static class members<\/strong><\/a>.<\/p><\/blockquote>\n<h1>Enabling Debug Mode+<\/h1>\n<p>This mode can be enabled for a <strong>single<\/strong> component using the <strong>Debug Mode+<\/strong>\u00a0<strong>button<img loading=\"lazy\" class=\"size-full wp-image-1318 alignnone\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/DebugModeOnIcon.png\" alt=\"\" width=\"18\" height=\"17\" \/><\/strong>found on the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/toolbars\/\">header toolbar<\/a>.<\/strong> Debug Mode+ mode will remain active for the component only until the inspected target changes, then it is automatically disabled.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-216\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/DebugMode.png\" alt=\"\" width=\"625\" height=\"311\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/DebugMode.png 625w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/DebugMode-300x149.png 300w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/DebugMode-150x75.png 150w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/p>\n<p>Alternatively you can enable Debug Mode+ for the entire inspector view\u00a0by opening the <a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/view-menu\/\">view menu<\/a> from the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/toolbar\/\">Power Inspector toolbar<\/a><\/strong> and selecting the item <strong>Debug Mode+ &gt; On<\/strong>. Debug Mode+ will be active for everything inside the inspector view, and remains on even if the inspected targets.<br \/>\nWhen Debug Mode+ is enabled for the entire view, <strong>hidden components<\/strong> on inspected GameObjects will also shown in the inspector.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1339\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/enabling-debug-mode-plus.png\" alt=\"\" width=\"368\" height=\"143\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/enabling-debug-mode-plus.png 368w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/enabling-debug-mode-plus-300x117.png 300w\" sizes=\"(max-width: 368px) 100vw, 368px\" \/><\/p>\n<h1>Why Debug Mode+?<\/h1>\n<p>When you run into <strong>unexpected behavior<\/strong>, it can invaluable to be able to select any <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/target-object\/\">target<\/a> and see <strong>all the<\/strong> <strong>data<\/strong> it contains <strong>without limitations<\/strong>. Even if a field or a component has been <strong>hidden<\/strong> in the Inspector, in the context of debugging, you might want to <strong>bypass<\/strong> those restrictions temporarily. Unfortunately, this is often not possible in the <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/default-inspector\/\">default inspector<\/a>.<\/p>\n<p>When you&#8217;re <strong>testing<\/strong> components that are still works in progress, a common thing you want to do is call some <strong>methods<\/strong> on them to observe if everything is working as expected. In the default inspector there is no way to do this, without making changes to code. This process can <strong>waste a lot of time<\/strong>, because even minor code changes require the <strong>script&#8217;s assembly<\/strong> to be <strong>reloaded<\/strong>, which costs precious time especially with larger projects.<\/p>\n<p>Additionally, should you <strong>forget to remove<\/strong> your temporary test code, such as test buttons you exposed to the inspector, it can lead to <strong>unnecessary confusion<\/strong> among users.<\/p>\n<p>Debug Mode+ was introduced to solve all of these problems. Using it you can easily invoke any methods you like with parameters you specify through the inspector. And you can always check the contents of that dictionary field if you would like, even if it&#8217;s normally hidden.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Debug Mode+? When Debug Mode+ is active, all components and class members are shown in inspector view. This includes: All non-serialized fields. All fields containing the HideInInspector attribute. All properties. All methods. All hidden components (when Debug Mode+ has been enabled for the whole view using the view menu). Previously unsupported types: dictionaries, ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/debug-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":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/215"}],"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=215"}],"version-history":[{"count":20,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":1803,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/215\/revisions\/1803"}],"wp:attachment":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/media?parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/categories?post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/tags?post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}