2016-12-07 13 views
8

Podczas debugowania pojawia się następujący błąd:Visual Studio 2015 - „. Nie do kroku Operacja nie mogła być ukończyli ponawiania powinny być wykonywane”

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

Po kliknięciu OK powraca dialogowych:

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

Rozwiązanie jest ustawione na "Debugowanie" i "Dowolny procesor". Po ponownym uruchomieniu aplikacji mogę przejść przez ten kod, ale zajmie mi to 5-10 sekund, aby przejść do czegoś, co zwykle następuje natychmiastowo. Jednak CPU, RAM i HDD działają normalnie i nie osiągają maksimum. Czy ktoś inny tego doświadczył?

+0

Czy programowanie podpinania do niczego w samym systemie Windows ? Jak tworzenie haków na klawiaturę, haków podklasowych itp.? –

+0

Aplikacja rozmawia z serwerem https://www.rabbitmq.com/, który działa lokalnie, ale w przeciwnym razie nie. Jest to prosta aplikacja konsolowa, która czyta e-mail za pomocą IMAP. @ LasseV.Karlsen – Ogglas

Odpowiedz

2

rozwiązać go za całkowicie odinstalowaniu programu Visual Studio ReSharper. Użyłem tego narzędzia:

https://github.com/Microsoft/VisualStudioUninstaller

Po ponownej instalacji wszystko znowu działa.

+0

To mi nie pomogło, nadal mam problem. Niestety. Debuguję aplikację konsolową, która pobiera pewną usługę WCF. – Hugo

4

Wystąpiłem również w tym wydaniu wcześniej w Visual Studio 2015 Update 3 na Windows 7 SP1 (64-bit).

Spróbuj wyłączyć proces hostingu Visual Studio.
Właściwości projektu> Debugowanie> usuń zaznaczenie "Włącz proces hostingu Visual Studio"

Czy brakuje Ci też pamięci?

Czy debugujesz witrynę 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.

Źródła:

Czy debugowanie aplikacji Uniwersalny system Windows?

Jeśli tak, to obejście może być ponowna instalacja "Narzędzia Appps Rozwoju Uniwersalny systemu Windows" w następujący sposób:

· 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

Źródło: - 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, Właśnie zacząłem dostawać ten błąd podczas debugowania strony WCF w Chrome. W zakładce Zaawansowane opcje "Wyłącz debugowanie skryptów" IE i inne są sprawdzane. – crokusek

+0

@crokusek, spróbuj wyłączyć proces hostingu Visual Studio. Zobacz moją zaktualizowaną odpowiedź. –

+0

To mi nie pomogło, nadal mam problem. Niestety. Debuguję aplikację Console, która zajmuje się usługą WCF – Hugo

-1

Powyższe rozwiązanie działa również dla mnie.

W międzyczasie znalazłem obejście. Przy pomocy Visual Studio Code mogę debugować kody JS bez IDS VS. (A może debugować z Chrome zbyt)

kroki:

  1. configure VSC wykorzystania skompilowany ASP.NET strona dll i lokalny webserver
  2. początek debugowania z VS
  3. startowym debugowania VSC

Zrobiłem to za pomocą tego prostego opisu: http://foreverframe.net/debugging-asp-net-core-apps-in-visual-studio-code/

+3

Podczas gdy ten link może odpowiedzieć na pytanie, lepiej umieścić w nim istotne części odpowiedzi i podać link do odsyłacza. Odpowiedzi dotyczące linków mogą stać się nieprawidłowe, jeśli strona z linkami się zmieni. - [Z recenzji] (/ opinia/niskiej jakości-posts/18892384) –

Powiązane problemy