Windows Store App and Remote Debugging on a Surface RT
In order to run your app from Visual Studio on your remote device, in my case I want to run it on my Surface... but you can do this with any remote device such as another desktop, a laptop, a tablet running Windows Pro or RT etc, all you really need to do is install the Remote Debugging tools.
For the Surface you just need to download and install:
Once this is installed you will get a little icon on your Start Screen:
You can see the Green Arrow:
When you run this for the first time it will ask you to configure some stuff, mainly for the firewall:
You only need to do this once. Once this is done you will get the following screen:
Now you're all ready for some awesome remote debugging!
In Visual Studio you need to select 'Remote Machine' in the debug list:
This opens up a remote debug connection:
Enter in the IP for the Surface. (You can get this by calling 'ipconfig' in command line) After pressing select the window will close, and you will be ready!
Now you just need to debug the app. Using the same app from the previous post I've put a break point on the MainView constructor:
When I begin debugging makes a request to the device and authenticates:
Note: If you're debugging on a device that is logged in with a different user, then Visual Studio will prompt you for credentials. Because I'm using the same LiveID on both my Desktop and Surface, it doesn't prompt me to login.
Once connected, it will install the app just like it does on your desktop, and then automatically runs and debugs the app:
And as you can see:
My shinny Surface screen running the Hello World sample from the previous post.
Debugging allows you to step through code just the same as doing it locally :)
Hopefully this helps anyone who has had difficulty or confusion debugging on remote devices.comments powered by Disqus