Xamarin.Forms IOS 断点未命中 [英] Xamarin.Forms IOS Breakpoints Not Hit

查看:18
本文介绍了Xamarin.Forms IOS 断点未命中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到了新的 Xamarin for Visual Studio,从那时起,我在 IOS 调试期间无法再打断点.奇怪的是,Android 运行良好.

I recently upgraded to the new Xamarin for Visual Studio, and since then, I can no longer hit breakpoints during IOS debugging. Android works fine, strangely.

我卸载并重新安装了 Visual Studio Community Edition 2017,并保留了所有默认设置.以前,这已经解决了像这样的奇怪问题.

I uninstalled and reinstalled Visual Studio Community Edition 2017 and left all of the defaults intact. Previously, this has resolved odd issues like this one.

我已经阅读了数十个类似的投诉,但这些解决方案对我不起作用.

I have read dozens of similar complaints, but those solutions have not worked for me.

推荐答案

我在 Windows 上的 Visual Studio 2017 和在远程 Mac 上使用 iOS 模拟器的最新 Xamarin 遇到了同样的问题.调试开始,但未命中断点.

I had the same issue with Visual Studio 2017 on Windows and latest Xamarin using the iOS simulator on remote Mac. Debugging started, but breakpoints were not hit.

通过在 Mac 或 iOS 构建选项上无任何更改使其正常工作;而是将 Windows 中 Visual Studio 2017 中生成的调试信息类型从完整"或仅限 Pdb"更改为便携".

Got it working by changing nothing on the Mac or iOS Build options; instead changed the generated Debugging information type in Visual Studio 2017 in Windows from "Full" or "Pdb-only" to "Portable".

我为 iOS 平台项目以及共享的 Xamarin.Forms 项目 (.NET Standard 2.0) 执行了此操作.

I did this for the iOS Platform project as well as the shared Xamarin.Forms project (.NET Standard 2.0).

此后,共享项目和 iOS 平台项目中的断点开始受到影响.美好的时光.

After this the breakpoints started getting hit in both the Shared project and the iOS platform project. Good times.

这篇关于Xamarin.Forms IOS 断点未命中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆