gpt4 book ai didi

visual-studio - 为什么我的所有异常消息现在都以 "crossed a native/managed boundary"结尾

转载 作者:行者123 更新时间:2023-12-01 18:34:30 25 4
gpt4 key购买 nike

我一直在搞乱调试选项,现在我所有的异常都像

System.NullReferenceException crossed a native/managed boundary.

有时,当发生异常时,VS 会要求我打开一些 .net .cs 文件,就好像我有源代码一样。我希望有一些“恢复默认值”按钮。知道我需要切换什么才能使其正常工作吗?

最佳答案

此处找到的解决方案(“Visual Studio 2010 中的一个选项,称为“在调试 > 常规下,异常跨越 AppDomain 或托管/ native 边界(仅限托管)时中断”):

Ignore exceptions that cross AppDomains when debugging in Visual Studio 2010

关于visual-studio - 为什么我的所有异常消息现在都以 "crossed a native/managed boundary"结尾,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4182518/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com