+1
Under review

Support for Xamarin IOS applications

Ron Sijm 4 years ago updated by Min Zhao 3 years ago 18

Ozcode does not work in xamarin projects. This is how the tooltip looks like:


I'd suggest either disable the tooltip thing yourself so I dont have to manually switch it on and off, or otherwise make it work, of course

Answer

Answer

We now have an experimental version of OzCode that partially supports Xamarin in VS2015. Please download it here.


A few important notes:

  1. This is an experimental release and does not mean that we're committing to adding official support for Xamarin. Having said that, we'd be very happy to hear from you on whether you found this experimental release helpful, and would really appreciate any bug reports on issues you may find.
  2. The support is currently limited to Reveal, Search, and Trace. Other features are either disabled or very limited - specifically, the Heads-Up-Display (HUD) will not show predictive results, and will not visualize Managed Method Return Values after you step over a line of code. However, the Parameters HUD is available.
Under review

Thanks Ron, we are looking into this and I'll update this ticket when there's news.

Just bought OzCode and I have the same issue with Xamarin Android projects.
Also tried the new Beta (2.0.0.1413). Same thing.
Is this not supported with Xamarin or is this a bug?

Hi Otto!


Thanks for letting us know, I have just sent you a follow up email.

Same for me with Xamarin Forms projects & OzCode 2.0.0.1594 .. I am not quite sore what the official status is here.. Ron & Otto reported it, but it is unclear whether this is a confirmed bug or a missing feature and/or whether this going to be addressed either by fix or by disabling OzCode for Xamarin Projects and i.e. letting users know with a message box upon first debugger start?

Hi Jorg! The official status is that this is a confirmed missing feature and it's going to be addressed (you'll see this in the next preview), in the short term, by disabling OzCode for Xamarin Projects and letting users know with a message box upon first debugger start, just like you had suggested . On 2.0.0.1594, as a temporary workaround, please go into OzCode->Options and disable OzCode while you're working on Xamarin projects.


In the long term, we definitely hope to add support for Xamarin projects as it's (of course) becoming an increasingly popular request, but we cannot give any guarantees as to if/when exactly this will happen at this time.

@Omer for me that workaround was not suitable. With oz-code installed, running xamarin projects crashes my visual studio, even if OzCode is disabled.

Hi Ron, we had reviewed the dump file you sent in (thanks again!) and we believe that this crash will not reproduce on the experimental version we just released (see download link at the top of this thread). If you do experience a crash again, we'd really appreciate it if you could send in another dump file so we could figure out what went wrong.

Answer

We now have an experimental version of OzCode that partially supports Xamarin in VS2015. Please download it here.


A few important notes:

  1. This is an experimental release and does not mean that we're committing to adding official support for Xamarin. Having said that, we'd be very happy to hear from you on whether you found this experimental release helpful, and would really appreciate any bug reports on issues you may find.
  2. The support is currently limited to Reveal, Search, and Trace. Other features are either disabled or very limited - specifically, the Heads-Up-Display (HUD) will not show predictive results, and will not visualize Managed Method Return Values after you step over a line of code. However, the Parameters HUD is available.

Hi @Omer, I've just downloaded .1629 and .1826 but I'm not getting the search box when I mouse over an object - looking at this http://o.oz-code.com/features#search it looks like it should replace the default VS drop down? Are there any other restrictions that might be interfering? My breakpoint is in a portable project and I'm debugging from an Android phone. I can see the object in my watch window and I have the OzCode magic wand asking if I want a tracepoint.

Sounds like I should be able to search but I can't see how to get that to work currently. VS 2013.


Cheers if you can help.

Hi! Apologies, I neglected to mention that the expiremental Xamarin support is unforunately limited to VS2015 and up. I've updated my answer to reflect this.

+1

Thanks for getting back so quickly. I've been wanting to upgrade, now's the time I guess.

Hi again @Omer, is there a specific VS15 / Xamarin version required? I've not yet updated my Xamarin and still not seeing any search options: VS15 14.0.25123.00, Xamarin 3.11.836.0, Xamarin Android 5.1.5.3 (quite old versions I know, not my decision to upgrade unfortunately).


Thanks for the update! We haven't tested against this old version, but can you please send us your log files from %TEMP%\OzCode\Logs to support@oz-code.com, so we could investigate further? Thank you!

Thanks Omer, looks like a Xamarin issue that you've already encountered: https://bugzilla.xamarin.com/show_bug.cgi?id=30193


Gettings lots of this:

ERROR BugAidLogger - Exception occurred: DebuggerShared.Helpers.Exceptions.OzCodeException: OzCode won't work, can't create parse data! ---> System.InvalidCastException: Unable to cast object of type 'Xamarin.VisualStudio.Debugger.AD7DocumentContext' to type 'Microsoft.VisualStudio.Debugger.Interop.IDebugDocumentContext2'.


If you're saying it works on the latest Xamarin version then I'll have to work something out.


Cheers.

Ah yes, unfortunately that issue was on the Xamarin side so the only way to work around it is to upgrade to the latest version of Xamarin.

Hi, just bought a license and ran into this issue... glad that there is a workaround... but when I install the beta release 1629 it says the early access preview has expired. Is there a place where we can get the latest beta bits?


Thanks!

Hi Min Zhao, I apologize for the confusion! Indeed the link that was posted in this thread was outdated, I have now updated that link to the latest OzCode Early Access Preview build: http://www.oz-code.com/download/eap

Thanks for the quick response, it works well.