How to attach to process running on PI2?

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

When working with Raspberry PI2 and Windows IoT Core you can debug your application by simply pressing ‘F5’ in Visual Studio 2015. But sometimes you want to attach to the running application on device.
To do this, first ensure that you can ping your device. In my case I used IP 192.168.178.1. I this does not work, you will not be able to debug the application.

image

Then go to Visual Studio, Debug | Attach to Process, change transport to Remote (no authentication) and enter the IP address (or host name) of your device, which you want to debug. The device should be found. If not click on Find and then enter the IP address. Port 4020 is debugging port, which should be automatically added by VS-Dialog.
In my case, I was attaching to the background application developed by me. Note that a background application is running in the process backgroundTaskHost.exe.

image

Here is the result:

image


Posted Sep 10 2015, 06:33 AM by Damir Dobric
Filed under:
developers.de is a .Net Community Blog powered by daenet GmbH.