如何禁用 Visual Studio 调试器? [英] How to disable Visual Studio debugger?

查看:44
本文介绍了如何禁用 Visual Studio 调试器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不要让你厌烦,我要长话短说.两台机器,相同的系统,相同的程序(大部分).一个安装了 Visual Studio,一个安装了……嗯,还有别的东西.

Not to bore you, I'm gonna make long story short. Two machines, identical systems on them, identical programs (mostly). One has Visual Studio installed, one has ... uhmm, something else.

有时当我尝试从 CD 安装应用程序时,Visual Studio 的即时调试器会弹出,报告...中未处理的 win32 异常"并询问我是否要使用新实例Microsoft VIsual Studio 2010".如果我选择 Yes,它会运行 VS,如果我选择 No,它会关闭事物,然后我回到 Windows 资源管理器.

Sometimes when I try to install applications from let's say a CD, Visual Studio's Just-In-Time Debugger pops up, reports an "unhandled win32 exception in ..." and asks whether I want to debug using "New instance of Microsoft VIsual Studio 2010". If I choose Yes, it runs VS, if I choose No it closes the thing, and I'm back in Windows Explorer.

没问题,但我知道应用程序完全没问题,这样我就无法安装它(在这个最新的演员阵容中,它是我银行的客户,用于网上银行和支付账单等).

Which would be ok, except I know the application is perfectly all right, and this way I cannot install it (in this latest cast it was the client from my bank for internet banking and paying bills and such).

那么,我该如何摆脱那个东西(即时调试器)?

当然,我不想卸载 VS,因为我每天都在使用它.

I don't want to uninstall VS since I'm using it daily, of course.

Edit 1 :: 我尝试在 VS 的 Tools/Options/Debugging/Just-In-Time 中禁用 Just-In-Time 调试,然后取消选中所有三个复选标记,但这只是在尝试运行可执行安装程序时出现了另一个错误.

Edit 1 :: I tried disabling Just-In-Time debugging in VS's Tools/Options/Debugging/Just-In-Time, then unchecking all three checkmarks, but that just gave another error when trying to run the executable installation program.

在 autorun.exe [某些数字] 中发生未处理的 win32 异常.即时调试此异常失败并出现以下错误:未安装的调试器已启用即时调试.在 Visual Studio 中,可以从 ...

查看即时调试,错误"的文档索引以获取更多信息.

信息量很大:/

编辑 2 :: 应用程序在没有安装 VS 的另一台机器上运行良好.在很大程度上,两台机器上的软件是相同的,只有一些细微差别(从映像安装的系统).细微差别:notepad2、++、git、...一些留给开发人员自己选择的小东西.

Edit 2 :: The application runs fine on the other machine that doesn't have VS installed. To a large extent software on both machines is the same, with just some minor differences (systems installed from image). Minor differences: notepad2, ++, git, ... some small stuff that is left to dev's own choosing.

我不希望这听起来像是对 VS 的咆哮,因为我意识到它采用了那种语气,但我非常不喜欢非自包含的软件,并且会把其他软件弄得一团糟.我之前在其他应用程序中也遇到过同样的问题.所以现在,我在责怪 VS.

I don't want this to sound as rant against VS, since I realize it's taking that tone, but I extremelly dislike software that is not self contained and messes other software up. And I had the same problem before with other applications as well. So for now, I'm blaming VS.

如果有必要,我愿意禁用所有类型的调试,以使这个东西永久工作(无论如何主要使用打印语句),如果这有帮助的话.如果可能的话.

推荐答案

我今天刚刚在使用 Visual Studio 2013 时遇到了这个问题.这个 MSDN 文章:Visual Studio 中的即时调试 对我有用.就我而言,我只是将 Debugger 重命名为 Debugger_del,将 DbgManagedDebugger 重命名为 DbgManagedDebugger_del.

I just had this problem today with Visual Studio 2013. This MSDN article: Just-In-Time Debugging in Visual Studio works for me. In my case, I just rename Debugger to Debugger_del and DbgManagedDebugger to DbgManagedDebugger_del.

通过编辑注册表禁用即时调试

To disable Just-In-Time debugging by editing the registry

  1. 开始菜单上,搜索并运行regedit.exe

注册表编辑器窗口中,找到并删除以下注册表项:

In the Registry Editor window, locate and delete the follow registry keys:

  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger

如果您的计算机运行的是 64 位操作系统,还要删除以下注册表项:

If your computer is running a 64-bit operating system, also delete the following registry keys:

  • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger

这篇关于如何禁用 Visual Studio 调试器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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