Forum Visual Studio

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Visual Studio debugging async Tasks not working properly

Hello,
I'm having trouble debugging nested Tasks in VS for Mac on a Xamarin.Forms app. When I debug on a physical device, stepping through code in a nested, awaited Task (async method awaiting another async method), step through simply continues normal execution, not hitting the next line. Watch and other debugging aids also do not work. Hovering above a field just displays:
An object reference is required for the non-static field, method, or property '(...fieldname...)'.

I found this old thread describing a somehow related problem, but there seems to be no solution yet. My linker settings for debug are "Don't Link". Debugging on an iPhone 6s with iOS 13. I don't face those problems when debugging on a simulator.
I encounter this problem on two independent MacBooks with vs for mac (work mac and my private one, also different projects).
All other project settings apart from the linker behaviour are standard.

Anyone else facing this issue?
Regards,
Gabriel

Sign In or Register to comment.