gpt4 book ai didi

visual-studio - 错误 : You are debugging a Release build of X. dll

转载 作者:行者123 更新时间:2023-12-03 10:49:32 24 4
gpt4 key购买 nike

背景
我有一个 ASP.NET MVC 应用程序项目,以及 Visual Studio 解决方案中的各种其他项目。不同的项目使用不同版本的 NPoco 库,如下所示:

  • MVC 项目通过 NuGet 包含一个 NPoco 版本。
  • 其他一些项目通过对 DLL 的引用(不是通过 NuGet 提供的 DLL)包括一个(可能不同的)NPoco 版本。
  • 其中一个项目是 NPoco 版本的源代码,并进行了一些改动。

  • 我正在使用 Visual Studio 2015 更新 3 14.0.25422.01。
    错误
    出于某种原因,当我使用 Visual Studio 中的正常启动调试命令在调试器中启动此应用程序时,它会启动,但也会产生以下警告:
    You are debugging a Release build of NPoco.dll. Using Just My Code with Release builds using compiler optimizations results in a degraded debugging experience (e.g. breakpoints will not be hit).
    如果我按 继续调试 ,一切似乎仍然照常工作,包括断点。
    这个问题最近才开始发生。

  • 有谁知道是什么导致了上述错误?
  • 我有什么配置错误吗?
  • 最佳答案

    在 Debug->Options->Suppress JIT optimization on module load (Managed only) 下禁用此选项。

    之前提交的连接报告:

    https://connect.microsoft.com/VisualStudio/feedback/details/2116788/flag-optimize-is-passed-to-the-debugger-even-while-the-build-settings-optimize-code-is-not-enabled-on-mvc-c-web-projects-when-using-just-my-code .

    还请确保所有项目都处于 Debug模式,优化代码在这种情况下没有被选中:

    VS2015 Project no longer runs in debug mode

    关于visual-studio - 错误 : You are debugging a Release build of X. dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38601643/

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