2016-12-07 108 views
8

调试时我收到以下错误:的Visual Studio 2015年 - “无法步骤操作无法完成,应该重试执行”

Unable to step. The operation could not be completed. A retry should be performed

单击确定,该对话框返回后:

The debugger cannot continue running the process. The operation could not be completed. A retry should be performed.

该解决方案设置为“调试”和“任何CPU”。重新启动应用程序后,我可以遍历代码,但需要5-10秒才能完成通常即时运行的操作。但是,CPU,RAM和硬盘运行正常并且没有达到峰值。有没有其他人经历过这个?

+0

是您的编程挂接到任何东西在Windows本身?像创建键盘钩子,窗口子类化钩子等? –

+0

该应用程序正在与本地运行的https://www.rabbitmq.com/服务器通信,否则不会。这是一个简单的控制台应用程序,使用imap读取电子邮件。 @ LasseV.Karlsen – Ogglas

回答

2

被完全卸载的Visual Studio解决它, ReSharper的。我用这个工具:

https://github.com/Microsoft/VisualStudioUninstaller

重新安装所有工作再经过。

+0

这没有帮助我,我仍然有问题。可悲的是。我正在调试一个控制台应用程序,它使用了一些WCF服务。 – Hugo

4

我也在Windows 7 SP1(64位)上的Visual Studio 2015 Update 3中遇到过此问题。

尝试禁用Visual Studio托管过程。
项目属性>调试>取消选中“启用Visual Studio宿主进程”

此外,你是否内存不足?

您是否在调试ASP.NET网站?

A known issue with the Visual Studio debugger causing this problem. There is a race condition that happens when all of the following are true:

  1. Script debugging is enabled in IE
  2. User is debugging IE and another process
  3. The other process stops (hits breakpoint, step operation completes, stops at an exception, etc) at a moment when IE is not running script code
  4. IE starts running script code at roughly the same moment that the user hits F10/F5 in Visual Studio. The most likely reason for this to happen is that the code from ‘setTimeout’ is run – there could be other reasons as well.

Workaround

  1. If you hit this problem, you can try detaching and reattaching the debugger.

    -or-

  2. This problem happens when debugging ASP.NET and when script debugging is enabled in IE. If you disable script debugging in IE, or toggle it on and off when switching between debugger server-side and client-side problems, you would be able to work around the issue.

    -or-

  3. If your web application is using setTimeout, you may be able to avoid or at least reduce the problem by doing something to ensure that script runs less often. This could mean increasing the timeout value, or this could mean adding conditions around when setTimeout is used.

来源:

你调试通用的Windows应用程序?

如果是这样,一个变通可能是重新安装 “通用的Windows Appps开发工具” 如下:

· If the “Tools for Universal Windows Apps Development” are still installed:

  1. Go to Programs and Features, select Visual Studio 2105, click Change.

  2. In Visual Studio setup, click Modify.

  3. Deselect the feature “Tools for Universal Windows App Development”

  4. Select “Tools for Universal Windows App Development” again, and click Update.

· If you have already uninstalled the “Tools for Universal Windows Apps Development”:

· Reinstall “Tools for Universal Windows App Development”

· Or, take the following steps to reinstall the JavaScript project system and language service:

§ Download the installer for your edition of Visual Studio, e.g., vs_community.exe.

§ Open a CMD window, and run the following command: vs_community.exe /modify /installselectableitems JavaScript_Hidden /passive

来源: - https://social.msdn.microsoft.com/Forums/vstudio/en-US/c9936d80-087d-4cad-93bf-ca4873889773/the-debugger-cannot-continue-running-the-process?forum=vsdebug

+0

fyi,刚刚在Chrome中调试WCF站点时出现此错误。在高级选项卡下,选中“禁用脚本调试”IE和其他选项。 – crokusek

+0

@crokusek,请尝试禁用Visual Studio托管过程。看到我更新的答案的顶部。 –

+0

这并没有帮助我,我仍然有问题。可悲的是。我正在调试一个控制台应用程序,这消耗了一些WCF服务 – Hugo

-1

上面的解决方案也适用于我。

在此期间,我找到了一种解决方法。在Visual Studio Code的帮助下,我可以在不使用VS IDE的情况下调试JS代码。 (它与Chrome调试太)

步骤:

  1. 配置VSC使用编译ASP。NET网站的dll和当地 Web服务器
  2. 开始调试与VSC

VS

  • 开始调试我把它用这个简单的描述: http://foreverframe.net/debugging-asp-net-core-apps-in-visual-studio-code/

  • +3

    尽管这个链接可能回答这个问题,但最好在这里包含答案的基本部分,并提供供参考的链接。如果链接页面更改,则仅链接答案可能会失效。 - [来自评论](/ review/low-quality-posts/18892384) –

    相关问题