{"id":6779,"date":"2012-11-01T16:30:55","date_gmt":"2012-11-01T15:30:55","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/?p=6779"},"modified":"2012-11-01T16:30:55","modified_gmt":"2012-11-01T15:30:55","slug":"how-to-test-and-debug-an-app-on-surface-rt-in-a-hotel-room","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/6779-how-to-test-and-debug-an-app-on-surface-rt-in-a-hotel-room.html","title":{"rendered":"How to test and debug an app on Surface RT in a hotel room"},"content":{"rendered":"<p>I wanted to test an app on Surface RT this morning, though I am out of the office with just a Samsung Slate (has Visual Studio), the Surface, and hotel wi-fi.<\/p>\n<p>You can do remote debugging on Surface RT as explained <a href=\"http:\/\/blogs.msdn.com\/b\/dsvc\/archive\/2012\/10\/26\/windows-rt-windows-store-app-debugging.aspx\" target=\"_blank\">here<\/a>, however you need a private network.<\/p>\n<p>I set up an ad-hoc network from the Samsung Slate as described <a href=\"http:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows_cp-networking\/about-ad-hoc-network-in-windows-8\/24383fe5-00b1-409f-99e7-49788a74cd42\" target=\"_blank\">here<\/a>:<\/p>\n<p>Open an elevated command prompt<\/p>\n<blockquote>\n<p>netsh wlan show drivers<\/p>\n<p>netsh wlan set hostednetwork mode=allow ssid=&quot;wireless name&quot; key=&quot;password&quot;<\/p>\n<p>netsh wlan start hostednetwork<\/p>\n<\/blockquote>\n<p>This allowed me to connect the Surface RT to a private network with the Slate.<\/p>\n<p>Next, I needed to download and install the remote debugging tools for ARM from <a href=\"http:\/\/www.microsoft.com\/visualstudio\/eng\/downloads\" target=\"_blank\">here<\/a>.<\/p>\n<p>I ran the remote debugger and was able to connect from Visual Studio on the Slate, but ran into a small issue. I needed a developer license for the Surface, but while on the private network it was not on the internet. When the remote debugger prompted to install a developer license, it could not retrieve it.<\/p>\n<p>The solution was to disconnect, connect to the internet, then install the developer license using PowerShell. Run show-windowsdeveloperlicenseregistration from an elevated PowerShell window.<\/p>\n<p><a href=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2012\/11\/image.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2012\/11\/image_thumb.png\" width=\"404\" height=\"179\" \/><\/a><\/p>\n<p>Then I returned to the private network and was able to launch my beautifully designed test app:<\/p>\n<p><a href=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2012\/11\/image1.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2012\/11\/image_thumb1.png\" width=\"404\" height=\"139\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2012\/11\/image2.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2012\/11\/image_thumb2.png\" width=\"404\" height=\"229\" \/><\/a><\/p>\n<p>Note that for the actual test I did not run the app attached to Visual Studio. Rather, I deployed in release mode and then ran separately, to avoid the slowdown from the debugger. Once deployed, the test app remains in the Start screen for launching.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to test an app on Surface RT this morning, though I am out of the office with just a Samsung Slate (has Visual Studio), the Surface, and hotel wi-fi. You can do remote debugging on Surface RT as explained here, however you need a private network. I set up an ad-hoc network from &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/6779-how-to-test-and-debug-an-app-on-surface-rt-in-a-hotel-room.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to test and debug an app on Surface RT in a hotel room<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,55,80,94,97],"tags":[849,882,999],"class_list":["post-6779","post","type-post","status-publish","format-standard","hentry","category-net","category-microsoft","category-software-development","category-visual-studio","category-windows","tag-software-development","tag-surface-rt","tag-windows-8"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/6779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=6779"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/6779\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=6779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=6779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=6779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}