2016-12-07 14 views
8

Khi gỡ lỗi tôi nhận được lỗi sau:Visual Studio 2015 - ". Không thể bước Các hoạt động không thể hoàn tất Một thử lại nên được thực hiện"

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

Sau khi nhấp OK, lợi nhuận thoại:

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

Giải pháp được đặt thành "Gỡ lỗi" và "CPU bất kỳ". Sau khi khởi động lại ứng dụng, tôi có thể bước qua mã nhưng phải mất 5-10 giây để bước vào một cái gì đó bình thường đi ngay lập tức. Tuy nhiên CPU, RAM và HDD hoạt động bình thường và không đạt tới đỉnh điểm. Đã có ai thử điều này chưa?

+0

là chương trình của bạn hooking vào bất cứ điều gì ở bản thân Windows ? Giống như tạo móc khóa, móc khóa cửa sổ con, v.v ...? –

+0

Ứng dụng này đang nói chuyện với một máy chủ https://www.rabbitmq.com/ chạy cục bộ nhưng ngược lại không. Nó là một ứng dụng giao diện điều khiển đơn giản mà đọc email bằng cách sử dụng imap. @ LasseV.Karlsen – Ogglas

Trả lời

2

Giải quyết nó bằng Visual Studio hoàn toàn gỡ bỏ cài đặt và ReSharper. Tôi đã sử dụng công cụ này:

https://github.com/Microsoft/VisualStudioUninstaller

Sau khi cài đặt lại mọi thứ đã hoạt động trở lại.

+0

Điều này đã không giúp tôi, tôi vẫn có vấn đề. Thật đáng buồn. Tôi đang gỡ lỗi một ứng dụng Console, tiêu thụ một số dịch vụ WCF. – Hugo

4

Tôi cũng đã gặp vấn đề này trước trong Visual Studio 2015 Update 3 trên Windows 7 SP1 (64 bit).

Thử tắt quy trình lưu trữ Visual Studio.
Thuộc tính dự án> Gỡ lỗi> bỏ chọn "Bật quá trình lưu trữ Visual Studio"

Ngoài ra, bạn có đang hết bộ nhớ không?

Bạn đang gỡ lỗi một trang web 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.

Nguồn:

Bạn gỡ một ứng dụng phổ quát Windows?

Nếu vậy, một công việc xung quanh có thể phải cài đặt lại "Công cụ cho Universal của Windows phát triển Appps" như sau:

· 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

Nguồn: - 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, Chỉ cần bắt đầu nhận được lỗi này trong khi gỡ lỗi một trang web WCF trong Chrome. Trong tab Advanced, các tùy chọn "disable debugging script" IE & other, đều được chọn. – crokusek

+0

@crokusek, hãy thử tắt quá trình lưu trữ Visual Studio. Xem phần trên cùng của câu trả lời cập nhật của tôi. –

+0

Điều này không giúp tôi, tôi vẫn gặp vấn đề. Thật đáng buồn. Tôi đang gỡ lỗi một ứng dụng giao diện điều khiển, tiêu thụ một số dịch vụ WCF – Hugo

-1

Giải pháp ở trên cũng hiệu quả đối với tôi.

Trong thời gian chờ đợi, tôi tìm thấy giải pháp thay thế. Với sự trợ giúp của Visual Studio Code tôi có thể gỡ lỗi các mã JS mà không có IDE VS. (Và nó có thể gỡ lỗi với Chrome quá)

bước:

  1. configure VSC sử dụng ASP biên soạn.NET website dll và các địa phương webserver
  2. bắt đầu gỡ lỗi với VS
  3. bắt đầu gỡ lỗi với VSC

tôi đã làm cho nó sử dụng mô tả đơn giản này: http://foreverframe.net/debugging-asp-net-core-apps-in-visual-studio-code/

+3

Trong khi liên kết này có thể trả lời câu hỏi, tốt hơn nên bao gồm các phần thiết yếu của câu trả lời ở đây và cung cấp liên kết để tham khảo. Câu trả lời chỉ liên kết có thể trở thành không hợp lệ nếu trang được liên kết thay đổi. - [Từ đánh giá] (/ đánh giá/bài đăng chất lượng thấp/18892384) –

Các vấn đề liên quan