{"id":3334,"date":"2015-08-19T17:41:57","date_gmt":"2015-08-19T17:41:57","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=3334"},"modified":"2015-08-19T17:41:57","modified_gmt":"2015-08-19T17:41:57","slug":"strange-white-on-black-numbers-during-debug-in-visual-studio-2015","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/strange-white-on-black-numbers-during-debug-in-visual-studio-2015\/","title":{"rendered":"Strange white on black numbers during debug in Visual Studio 2015"},"content":{"rendered":"<p>When running a Universal Windows application in debug mode within Visual Studio 2015 I noticed some &#8220;strange&#8221; white numbers on a black background adorning my application window (and in the case of a desktop application displayed on the top right of the screen).<\/p>\n<p>It seems these are enabled via the App.xaml.cs file, within the OnLaunched method (the code in some cases may appear in the App() constructor according to the documentation) there&#8217;s the following code<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n#if DEBUG\r\n   if(System.Diagnostics.Debugger.IsAttached)\r\n   {\r\n      this.DebugSettings.EnableFrameRateCounter = true;\r\n   }\r\n#endif\r\n<\/pre>\n<p>See also <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows.ui.xaml.debugsettings.enableframeratecounter.aspx\" target=\"_blank\">DebugSettings.EnableFrameRateCounter property<\/a>.<\/p>\n<p>As stated within the above link, this causes an overlay of two sets of numbers. Those in the upper left of the screen\/Window relate to the application being debugged those in the upper right apply to the overall system. <\/p>\n<p>Basically the left number is the app&#8217;s UI frame rate in frames per second and the right number is the CPU usage of the app&#8217;s UI thread per frame in milliseconds.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When running a Universal Windows application in debug mode within Visual Studio 2015 I noticed some &#8220;strange&#8221; white numbers on a black background adorning my application window (and in the case of a desktop application displayed on the top right of the screen). It seems these are enabled via the App.xaml.cs file, within the OnLaunched [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[108,107],"tags":[],"class_list":["post-3334","post","type-post","status-publish","format-standard","hentry","category-visual-studio-2015","category-windows-10"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/3334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=3334"}],"version-history":[{"count":3,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/3334\/revisions"}],"predecessor-version":[{"id":3337,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/3334\/revisions\/3337"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=3334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=3334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=3334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}