Debugger operation failed The request is not supported. (Exception from HRESULT: 0x80070032)

1

I have a C# project that was initially created by VS2013. I open it in Xamarin and it builds fine, the executable file is created and can be started from outside Xamarin.

But if I try to start it with Run->Start Debugging, it shows this error:

Debugger operation failed
The request is not supported. (Exception from HRESULT: 0x80070032)

enter image description here

The only similar question I found was for F# - Debugging F# in Xamarin Studio 4.0.3 throws an error, and they suggest it is because the project is 64-bit, but I'm not sure if this applies to C# as well.

How can I fix this error?

c#
debugging
xamarin-studio
asked on Stack Overflow Aug 9, 2016 by sashoalm

2 Answers

0

It really did turn out to be because of the architecture. But in my case the architecture was AnyCPU, not x64, and it couldn't be changed from inside Xamarin:

enter image description here

So instead I opened the .csproj file in Notepad++ and used Replace All to replace all mentions of "AnyCPU" to "x86". After reloading the solution in Xamarin, the debugger now works.

answered on Stack Overflow Aug 9, 2016 by sashoalm
0

If you arrive here as a result of trying to debug a unit test in Xamarin (in my case on a Mac) and you see the Debugger Operation Failed message, it may be because in the drop-down for your chosen build (on the header bar area) you still have release selected. I switched that to debug, and then the option in the unit tests to 'debug test' worked.

answered on Stack Overflow May 4, 2017 by The Senator

User contributions licensed under CC BY-SA 3.0