![how to enable debugging in xamarin for visual studio how to enable debugging in xamarin for visual studio](https://docs.microsoft.com/en-us/xamarin/ios/deploy-test/debugging-in-xamarin-ios-images/debugging1a.png)
- #HOW TO ENABLE DEBUGGING IN XAMARIN FOR VISUAL STUDIO INSTALL#
- #HOW TO ENABLE DEBUGGING IN XAMARIN FOR VISUAL STUDIO WINDOWS 10#
- #HOW TO ENABLE DEBUGGING IN XAMARIN FOR VISUAL STUDIO FOR ANDROID#
- #HOW TO ENABLE DEBUGGING IN XAMARIN FOR VISUAL STUDIO SIMULATOR#
![how to enable debugging in xamarin for visual studio how to enable debugging in xamarin for visual studio](https://docs.microsoft.com/en-us/xamarin/android/deploy-test/debugging/debug-on-emulator-images/win/02-incompatible-level.png)
Does this all sound right? Does it offer any clues what I need to change to get the real Debug config to work correctly?įor anyone facing a similar problem, the solution that I eventually adopted entailed a 'brute force' approach.
![how to enable debugging in xamarin for visual studio how to enable debugging in xamarin for visual studio](http://4.bp.blogspot.com/-nOZXbS7bokE/UeGoQ9J67zI/AAAAAAAAGLQ/c1E8iv1YiY8/s1600/Screen+Shot+2013-07-13+at+2.17.21+PM.png)
If I explicitly enable debugging in the Ad-Hoc project configuration, Xamarin Studio ignores it, but Visual Studio then attaches the debugger but doesn't hit any breakpoints. UPDATE: If I use the Ad-Hoc project configuration (in either Visual Studio or Xamarin Studio) it correctly deploys and launches the app on the device, but doesn't attach the debugger. It would be helpful to have a complete, robust A-Z tutorial for this setup process but, failing that, any suggestions what I should try next would be very much appreciated. So, after all this experimentation, I am completely lost. I guess this is the reason my test device is not listed, but I am unclear what I need to do to get Xamarin Studio to accept my changes. Changing it to iPhone and saving the configuration it appears work, but the changes are not actually saved. If I open project options and navigate to the iOS Debug view, I can see that the platform associated with the Debug configuration is iPhoneSimulator.
#HOW TO ENABLE DEBUGGING IN XAMARIN FOR VISUAL STUDIO SIMULATOR#
Again, the iPhone simulator works OK, but it is impossible to even launch a debug session using the physical device, because the connected iPhone is not listed as a candidate target device for the Debug | iPhone configuration. On the device 'Tim’s iPhone': AMDeviceSecureInstallApplicationBundle returned: 0xe8008001.Īs a comparison, I also tried debugging directly on the Mac, using Xamarin Studio.
#HOW TO ENABLE DEBUGGING IN XAMARIN FOR VISUAL STUDIO INSTALL#
However, debugging on the physical iPhone fails with the following unhelpful message: : error MT1006: Could not install theĪpplication '/Users/Tim/Library/Caches/Xamarin/mtbs/builds/Test.iOS/c4f40041b6c58fc579a727bccfc18614/bin/iPhoneSimulator/Debug/TestiOS.app' If I try to debug the app on the iPhone simulator from Visual Studio, it works correctly. On the Windows PC, the Xamarin > iOS Options pane within Visual Studio settings confirms that Visual Studio is connected to the Mac and the attached iPhone is also listed as a candidate target device, so it seems that everything is set up for on-device debugging. However, I am able to run the dummy Xcode project on the iPhone, so I assume it must be OK? This process is so unintuitive (and the visual feedback within Xcode is so poor) that I am not certain that I have done it correctly. I also made an attempt at the rather complicated process of creating a signing identity and provisioning profile for the app, and downloading / installing them on the Mac. To progress to iOS debugging I then set up the Mac with Xcode and Xamarin Studio, enabled it for remote login, and created a dummy Xcode project with the same bundle identifier as my Xamarin.iOS app. I started by creating a Xamarin solution in Visual Studio, which I initially developed and debugged on Android. iPhone or iPad USB-connected to the Mac for iOS debugging.MacBook running OS X 10.11 with Xamarin Studio v6.1.1 and Xcode v8.0.
#HOW TO ENABLE DEBUGGING IN XAMARIN FOR VISUAL STUDIO FOR ANDROID#
HTC phone USB-connected to the PC for Android debugging (works fine).
![how to enable debugging in xamarin for visual studio how to enable debugging in xamarin for visual studio](https://docs.microsoft.com/en-us/xamarin/xamarin-forms/internals/sourcelink-images/sourcelink-enable-mac.png)