如何在 Visual Studio 2017 年启用即时调试器?

How to enable Just In Time Debugger in Visual Studio 2017?

我没有Just-In-Time选项:

我发现可以使用 Internet 选项解决此问题:

但是当我重建解决方案时,我得到了这个异常:

如何解决这个问题?

How to enable Just In Time Debugger in Visual Studio 2017?

首先,请确保您已经在安装程序中安装了组件即时调试器

然后重新启动您的 Visual Studio,您将在选项中获得 Just-In-Time。

如果在安装即时调试器组件后仍然有问题,您可以尝试将 Visual Studio 更新到最新版本。

此外,

This also could have happened when installing VS2017 on a machine that once had a previous version of VS installed (the JIT debugger does not uninstall with VS for backward compatibility reasons).

To work around these issues until the fixes are released, run repair to register the JIT debugger (assuming it was selected to be installed) or uninstall and reinstall making sure to select the JIT debugger.

Once VS2017 is repaired/installed, start VS as administrator and go to the JIT options page. Check all checkboxes and click OK.

查看 Just-in-time debugging disabled and options missing 的详细信息。

希望对您有所帮助。