jjzjj

c# - Visual Studio Community 2015 调试器在带有 "Evaluation of native methods is not supported"的条件断点处结束 - 如何修复?

coder 2024-05-23 原文

我有一个条件断点,条件检查字符串的值,如果为真则停止。它停止了,但随后打开一个窗口说:

断点的条件无法执行...返回的错误是“评估方法 System.Collections.Specialized.NameValueCollection.get_Item() 调用 native 方法”System.Globalization.TextInfo.Internal.GetCaseInsHash ().不支持在此上下文中评估 native 方法。'。单击“确定”在此断点处停止。

我搜索了答案,但他们说启用托管兼容模式,但没有用。

最佳答案

在项目调试设置下选中“启用 Visual Studio 托管进程”为我解决了这个问题。

关于c# - Visual Studio Community 2015 调试器在带有 "Evaluation of native methods is not supported"的条件断点处结束 - 如何修复?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46303420/

有关c# - Visual Studio Community 2015 调试器在带有 "Evaluation of native methods is not supported"的条件断点处结束 - 如何修复?的更多相关文章

随机推荐