raspberry pi 2 windows iot remote debugger does not appear to be running

5.3k views Asked by At

I'm trying to debug an example app on a raspberry pi 2 using windows 10 build 10074 with VS 2015RC.

I've successfully done this before but I'm currently getting this error re: The Visual Studio 2015 Remote Debugger (MSVSMON.EXE) does not appear to be running.

Seems like it would be simple to fix this but I can't find anything specific to VS2015 and IoT.

5

There are 5 answers

2
Mark Radbourne On BEST ANSWER

The remote debugger should be started automatically when the RPi2 is booted. However, I too have seen this issue. If you do not wish to reboot your device then you should connect to your RPi2 via the PowerShell interface. Once you have connected enter ps. If you do not see one or more instances of msvsmon running then you can start the debugger by changing directory to c:\RDBG and running the command StartOneCoreRdbg.cmd. This will never return to a command prompt though.

Mark Radbourne [MSFT]

0
Tamer On

Worked for me:

Visual Studio -> Tools -> NuGet Packet Manager -> Packet Manager Settings -> Check both boxes under "Package Restore"

0
Archit Bhatnagar On

Use iot dashboard and in "my devices" and click on "open in device portal". In there would a option "Debugging" click on start visual studio debugger. Then deploy the app

enter image description here

0
Hiroyuki Sanada On

I was setting up RPi3 for my friend and none of the above options worked in my friend's case when she walked herself into this issue.

The option "click on start visual studio debugger" only works if the MSVSMON.exe has been previously deployed onto the RPi3. This can be done manually using powershell or VS does it automatically the first time you try to do remote debugging.

When you start remote debugging the first time in VS connected to the RPi3, it will deploy the MSVSMON.exe to the RPi3 and start it. From there onwards, the debugger may stop if you reboot the RPi3 but it will stay deployed onto the RPi3.

In my friend's case, VS would fail deploying the app every single time, no matter if the firewall was turned off or if netstart Winrm command was issued. Tried all the authentication methods but it didn't work.

Ultimately I asked her to uninstall VS completely and then install VS + Update 2 + latest Win 10 SDK out there.

This reinstallation of the VS helped resolve the issue. After reinstallation, VS was now able to deploy to the RPi3 using the 'Universal' Authentication method.

0
mm3343 On

Properties Project ->Debug->Autehntication Mode: Universal.

Try, it's work.