Code Mill Minute: Debugging With Visual Studio … But Not From Windows

Code Mill Minute: Debugging With Visual Studio … But Not From Windows

The Situation You need to debug a web based project running in Visual Studio – but the thing you want to initiate the debugging from isn’t a web browser running on Windows… Let’s say it’s a physical iPad – or maybe an iOS simulator running on a Mac and Windows itself is virtualized running from Parallels. Every now and then I come across the following situation where I need to accomplish something similar: Building & debugging a Xamarin based app from OS X using Xamarin Studio Building & debugging a REST web service from Windows using Visual Studio – Windows is virtualized and running from Parallels Need to hit breakpoints in the Visual Studio code that are initiated by either the iOS simulator, Android emulator or on device … OR if I”m building a website, I just need to see how it looks on a real device And every time I initially have to setup the environment to support such a situation – I have to stop and think to myself … how did I do that before? So in hopes that by writing it down the steps get burned into my brain, and that these steps help somebody else from wracking their brain … here they are … how to debug Visual Studio code, but not from Windows: The Steps Step 0: Running Parallels? Set the networking mode to “bridged”. This will give your virtualized Windows an IP on the subnet just as any other machine, instead of a virtual one that only the host machine can see. We’ll then have an IP address that other devices on...
Code Mill Minute: The Coolest Xamarin 4 Feature Ever!

Code Mill Minute: The Coolest Xamarin 4 Feature Ever!

On November 17, Xamarin unveiled a huge set of new features collectively known as Xamarin 4. These features pretty much touched the entire Xamarin product lineup – big and small. Some highlights include: Xamarin Forms 2.0 This is a big time release, Forms is now a 2.0 product! I have used 1.x Forms in a couple of “production” apps and have been quite happy with it. I’m definitely looking forward to using it as a 2.0 product. Looking forward so much, I even “found” Xamarin Forms 2.0 before it was announced! Very interesting … looks like #XamarinForms 2.0 is available! — Matthew Soucoup (@CodeMillMatt) November 17, 2015 I don’t see the #XamarinForms 2.0 on the release notes page: https://t.co/fxuiEaTzRu … but it is on Nuget: https://t.co/EX3klMoShG — Matthew Soucoup (@CodeMillMatt) November 17, 2015 Xamarin Mac Agent In my normal day to day development, I work on a Mac and when I am using Visual Studio – it’s through a virtual machine. The pairing process to get to the previous Mac Build Host was mostly painless – but it still was a process, sometimes hanging, sometimes having to enter a PIN. No more! The new Xamarin Mac Agent is slick and easy, with the pairing done through some SSH magic. (But beware there are some file path length limitations, at least for now, so you may need to move where your solution resides). UI Test Recorder Yes and heck yes! I always thought the main reason more people didn’t write unit tests was because … well, they had to write them! (At least that line of thinking makes me feel...