{"id":3793,"date":"2012-12-07T14:37:00","date_gmt":"2012-12-07T14:37:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2012\/12\/07\/debugging-on-your-windows-rt-device-without-a-network-connection\/"},"modified":"2022-07-21T03:42:06","modified_gmt":"2022-07-21T11:42:06","slug":"debugging-on-your-windows-rt-device-without-a-network-connection","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/debugging-on-your-windows-rt-device-without-a-network-connection\/","title":{"rendered":"Debugging on your Windows RT Device without a Network Connection"},"content":{"rendered":"<p><a href=\"http:\/\/www.microsoft.com\/visualstudio\/\"><span style=\"color: #0563c1;font-family: Calibri;font-size: small\">Visual Studio 2012<\/span><\/a><span style=\"font-family: Calibri;font-size: small\"> allows you to debug your application on your Windows RT device so that you can develop the application the same way that your customers will use it.\u00a0 Remote debugging is over your local network, which is really convenient when you are at home or at work and both machines are on the same network. To learn more about how to setup that please read on MSDN about <\/span><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/hh441469.aspx\"><span style=\"color: #0563c1;font-family: Calibri;font-size: small\">Remote Debugging Windows Store apps<\/span><\/a><span style=\"font-family: Calibri\"><span style=\"font-size: small\">.<\/span><\/span><\/p>\n<p><span style=\"font-size: small\"><span style=\"font-family: Calibri\">What if you are on the road and there is no suitable network available?\u00a0 Often networks in hotels, airports, or coffee shops will block incoming connections. In this blog post you will learn how to achieve remote debugging even in that situation by making a physical connection and configuring the project properties correctly.<\/span><\/span><\/p>\n<p><span style=\"font-size: large\"><strong><span style=\"font-family: Calibri\">Make the physical connection<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-size: small\"><span style=\"font-family: Calibri\">The good news is that there is an option to connect your development machine directly to your Windows RT device.\u00a0 There are just two things that you will need:<\/span><\/span><\/p>\n<p style=\"padding-left: 30px\">\n  <span style=\"font-family: Calibri;font-size: small\">1)<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"font-size: small\"><span style=\"font-family: Calibri\">A standard Ethernet cable<\/span><\/span>\n<\/p>\n<p style=\"padding-left: 30px\">\n  <span style=\"font-family: Calibri;font-size: small\">2)<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"font-family: Calibri;font-size: small\">A USB Ethernet adapter (since most Windows RT devices do not have an Ethernet port<\/span><span style=\"font-size: small\"><span style=\"font-family: Calibri\">), such as the ASIX 88772C or Realtek 8152B.<\/span><\/span>\n<\/p>\n<p><span style=\"font-size: small\"><span style=\"font-family: Calibri\">Plug the USB Ethernet adapter into the Window RT device and then connect the two machines with the Ethernet cable.<\/span><\/span><\/p>\n<p><span style=\"font-size: small\"><span style=\"font-family: Calibri\">You might be thinking that you need some sort of special cross-over Ethernet cable to connect two computers through their Ethernet ports, but this is unnecessary with modern networking hardware.<\/span><\/span><\/p>\n<p><span style=\"font-size: large\"><strong><span style=\"font-family: Calibri\">Project Properties Configuration<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-size: small\"><span style=\"font-family: Calibri\">Now it\u2019s just a matter of configuring your project to use this connection.\u00a0 <\/span><\/span><\/p>\n<p><span style=\"font-size: small\"><span style=\"font-family: Calibri\">As when remote debugging on a local network, you begin by launching the remote debugger on your Windows RT device.\u00a0 <\/span><\/span><\/p>\n<p><span style=\"font-size: small\"><span style=\"font-family: Calibri\">Select your project and choose \u201cProperties\u201d from the context menu.\u00a0 Then click on the Debug properties tab.\u00a0 From the debug settings, you will want to launch the Remote Debugger Connections dialog in order to select this connection.\u00a0 You bring up this dialog in slightly different ways depending on your project type.<\/span><\/span><\/p>\n<p><span style=\"font-size: small\"><span style=\"font-family: Calibri\">For C# or Visual Basic projects, click on the \u201cFind\u201d button as shown below.<\/span><\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/12\/4721.csprops.png\" alt=\"\" border=\"0\" \/><\/p>\n<p><span style=\"font-size: small\"><span style=\"font-family: Calibri\">For JavaScript or C++ projects, you will want to click on the Remote Machine dropdown and select \u201c&lt;Locate\u2026>\u201d for JavaScript or \u201c&lt;Edit\u2026>\u201d for C++, shown below.<\/span><\/span><\/p>\n<p>\u00a0<img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/12\/6165.jsprops.png\" alt=\"\" border=\"0\" \/><\/p>\n<p><span style=\"font-family: Calibri;font-size: small\">\u00a0<\/span><span style=\"font-size: small\"><span style=\"font-family: Calibri\">After taking one of the previous actions you\u2019ll see the dialog shown below. <\/span><\/span><\/p>\n<p>\u00a0<img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/12\/3603.connections.png\" alt=\"\" border=\"0\" \/><\/p>\n<p><span style=\"font-size: small\"><span style=\"font-family: Calibri\">In the dialog you can see your Windows RT device in the list of available connections.\u00a0 Select this connection and debug away \u2013 it is that simple!<\/span><\/span><\/p>\n<p><span style=\"font-size: small\"><span style=\"font-family: Calibri\"><strong>Troubleshooting Note: <\/strong>If you are not seeing this machine show up, you should check to make sure you have not blocked discovery of devices on public networks.\u00a0 You can configure this under your Network settings.<\/span><\/span><\/p>\n<p><span style=\"font-size: small\"><span style=\"font-family: Calibri\">I&#8217;d love to hear any questions\/feedback that you may have so please leave a comment below.<\/span><\/span><\/p>\n<div>\n  \u00a0\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio 2012 allows you to debug your application on your Windows RT device so that you can develop the application the same way that your customers will use it.\u00a0 Remote debugging is over your local network, which is really convenient when you are at home or at work and both machines are on the [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,225],"tags":[],"class_list":["post-3793","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-git"],"acf":[],"blog_post_summary":"<p>Visual Studio 2012 allows you to debug your application on your Windows RT device so that you can develop the application the same way that your customers will use it.\u00a0 Remote debugging is over your local network, which is really convenient when you are at home or at work and both machines are on the [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/3793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=3793"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/3793\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=3793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=3793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=3793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}