{"id":47,"date":"2016-05-12T03:26:00","date_gmt":"2016-05-12T03:26:00","guid":{"rendered":"https:\/\/leedavies.dev\/?p=47"},"modified":"2016-05-12T03:26:00","modified_gmt":"2016-05-12T03:26:00","slug":"visual-studio-2015-debug-tools","status":"publish","type":"post","link":"https:\/\/leedavies.dev\/index.php\/2016\/05\/12\/visual-studio-2015-debug-tools\/","title":{"rendered":"Visual Studio 2015 Debug Tools"},"content":{"rendered":"<p><span style=\"font-family: 'Georgia',serif;color: #333333\">Sometimes I just want to run my Universal Windows Application in debug mode and do some exploratory testing, or just test drive a new change. However, when Visual Studio creates a new project it enables the diagnostic tools and frame rate counter by default.<\/span><\/p>\n<p><span style=\"font-family: 'Georgia',serif;color: #333333\">To prevent the Diagnostic Tools from starting when you debug go to the Debug-&gt; Options dialog and uncheck the &#8220;Enable Diagnostic Tools while debugging&#8221;.<\/span><\/p>\n<figure id=\"attachment_70\" aria-describedby=\"caption-attachment-70\" style=\"width: 483px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/leedavies.dev\/wp-content\/uploads\/2016\/05\/DiagnosticDebugging.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-70\" src=\"https:\/\/leedavies.dev\/wp-content\/uploads\/2016\/05\/DiagnosticDebugging-300x23.jpg\" alt=\"DiagnosticDebugging\" width=\"483\" height=\"37\" srcset=\"https:\/\/leedavies.dev\/wp-content\/uploads\/2016\/05\/DiagnosticDebugging-300x23.jpg 300w, https:\/\/leedavies.dev\/wp-content\/uploads\/2016\/05\/DiagnosticDebugging.jpg 451w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><\/a><figcaption id=\"caption-attachment-70\" class=\"wp-caption-text\">Turning off the Diagnostic Tools while debugging.<\/figcaption><\/figure>\n<p>To prevent the XAML tools from starting, in the Debug -&gt; Options dialog uncheck the &#8220;Enable UI Debugging Tools for XAML&#8221;<\/p>\n<figure id=\"attachment_68\" aria-describedby=\"caption-attachment-68\" style=\"width: 480px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/leedavies.dev\/wp-content\/uploads\/2016\/05\/Enable_UI_Debugging-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-68\" src=\"https:\/\/leedavies.dev\/wp-content\/uploads\/2016\/05\/Enable_UI_Debugging-1-300x45.png\" alt=\"Enable_UI_Debugging\" width=\"480\" height=\"72\" srcset=\"https:\/\/leedavies.dev\/wp-content\/uploads\/2016\/05\/Enable_UI_Debugging-1-300x45.png 300w, https:\/\/leedavies.dev\/wp-content\/uploads\/2016\/05\/Enable_UI_Debugging-1.png 472w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a><figcaption id=\"caption-attachment-68\" class=\"wp-caption-text\">Turning off the UI Debugging Tools for XAML<\/figcaption><\/figure>\n<p><span style=\"font-family: 'Georgia',serif;color: #333333\">The most annoying tool to have running during a debug session, is the frame rate counter, which is positioned in the top left corner of the application. <\/span><\/p>\n<figure id=\"attachment_63\" aria-describedby=\"caption-attachment-63\" style=\"width: 248px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/leedavies.dev\/wp-content\/uploads\/2016\/05\/App_FrameRateCounter.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-63 size-full\" src=\"https:\/\/leedavies.dev\/wp-content\/uploads\/2016\/05\/App_FrameRateCounter.png\" alt=\"Frame Rate Counter\" width=\"248\" height=\"178\" \/><\/a><figcaption id=\"caption-attachment-63\" class=\"wp-caption-text\">Frame Rate Counter<\/figcaption><\/figure>\n<p><span style=\"font-family: 'Georgia',serif;color: #333333\">There does not appear to be an option to disable this so you need to do this in code.<\/span><\/p>\n<p><span style=\"font-family: 'Georgia',serif;color: #333333\">To prevent the frame rate counter from being displayed in the App.xaml set Debug.Settings.EnableFrameRateCounter to false.<\/span><\/p>\n<p><code>if (System.Diagnostics.Debugger.IsAttached)<br \/>\n{<br \/>\nthis.DebugSettings.EnableFrameRateCounter = false;<br \/>\n}<\/code><\/p>\n<p><span class=\"pln\">When I need these tools they are great, however I don&#8217;t need them on all the time, so\u00a0when I first create a project I turn them off until I have the bare-bones of the project started then I turn them on and off as the need arises.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes I just want to run my Universal Windows Application in debug mode and do some exploratory testing, or just test drive a new change. However, when Visual Studio creates a new project it enables the diagnostic tools and frame rate counter by default. To prevent the Diagnostic Tools from starting when you debug go to the Debug-&gt; Options dialog and uncheck the &#8220;Enable Diagnostic Tools while debugging&#8221;. To prevent the XAML tools from starting, in the Debug -&gt; Options&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/leedavies.dev\/index.php\/2016\/05\/12\/visual-studio-2015-debug-tools\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[11],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-technology","tag-visualstudio"],"_links":{"self":[{"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":19,"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/posts\/47\/revisions\/75"}],"wp:attachment":[{"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}