question

Orgbrat avatar image
0 Votes"
Orgbrat asked RobCaplan edited

Visual Studio does not hit debug breakpoints when using Hot Restart with iPhone

So I have Visual Studio 2019 v16.10.1 with Xamarin.Forms Hot Restart for iOS enabled. I have installed the desktop version of iTunes on my Windows 10 computer. after setting up Hot Restart everything seems to work perfectly. The Xamarin.Forms iOS platform application builds and deploys to the physical iOS device which is a iPhone 8 with iOS 14.6 installed. The application starts and runs as it should, hey I am home free. Oh no, VS2019 will not hit breakpoints and stop so I am unable to debug code running on the iPhone. What am I missing? I have been running against the iOS simulators until Apple broke the Windows to MAC simulators. So I bought the wife a new iPhone 12, took her iPhone 8 and decided to set up Hot Restart. Which works absolutely great except for this debugging issue. Do I need to turn on debugging on the device like I do on my Android devices? Just do not understand where I am going wrong here. Can anyone help with this issue?

Orgbrat

dotnet-xamarinvs-debugging
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Orgbrat Open the project property window and go to "Build->Advanced" to check if "Debugging inforamtion" is "Portable".

0 Votes 0 ·

My project won't even run on iOS if debug is set to portable. I am having the same issue but It just started recently. Previously I was able to debug just fine on iOS but now VS debugger won't even recognize when I start the app on the device. Currently Visual Studio just holds and waits for the app on the iOS device to launch even after its been launched and then it times out

1 Vote 1 ·

0 Answers