none
Debugger error: Unable to Step. The operation could not be completed...

    Question

  • Hello, all -

    When stepping through code, I am getting the following error:

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

     

    After clicking OK, the following message displays:

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

     

    The problem is sporadic, but it is happening to several developers on the team with alarming frequency (several times per hour).  Any suggestions on how to troubleshoot this issue ? 

     

    Thanks in advance for your help!

     

    Denise

    Wednesday, April 16, 2008 3:52 PM

Answers

  • Thanks to the help of one extremely helpful customer, I was able to identify the problem last night. This is a bug in the debugger. 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, but I am not a JScript expert, so I am sure there are other possible reasons as well.

    Now that we have finally found the cause, we are going to work on getting a fix into future versions of Visual Studio. I will try my hardest to get this into Visual Studio 2008 SP1.

     

    In the mean time, there are a couple of work arounds which you can try:

    1. If you hit this problem, I believe you could detach the debugger and then re-attach.

    -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.

     

    Thanks to everyone's help and we are sorry that you are experiencing this issue,

    Gregg

    Thursday, May 15, 2008 5:02 PM
    Moderator

All replies

  •  

    I've just started getting this error. Don't know why it just suddenly started happening!!!

     

    Did you make any progress on it?

    Tuesday, April 29, 2008 1:15 AM
  • Hello, Will -

    I'm afraid we haven't made much progress.  We opened a ticket with Microsoft, and their advice was to check in changes and get latest more often. This seemed to help a little but the error still occurs. 

     

    Needless to say, I am completely baffled why being in synch with vss would make a difference.  The Microsoft tech wasn't able to explain this either. 

     

    Will let you know what else we find...

     

    Denise 

    Tuesday, April 29, 2008 1:20 PM
  • I, too, have begun seeing this error while debugging in Visual Studio 2008.

    So far, it has been limited to times when using an asynchronous call, or this is the only time I have noticed it (however, I can't imagine not noticing it happening).

    Has any progress been made with this error?  I have been unable to pin-point anything specifically at this time.


    Wednesday, April 30, 2008 7:59 PM
  • Hi,
    Several people on my team are also started getting this. We just switched to VS 2008, not sure if that is related or not. Has anyone figured anything out about this?

    Sayed Ibrahim Hashimi
    www.sedodream.com

    Wednesday, May 07, 2008 2:41 PM
    Moderator
  • I have been investigating this issue with one customer. I haven't yet gotten to bottom of this.

     

    Gregg

    Wednesday, May 07, 2008 9:59 PM
    Moderator
  • I disabled debugging script from IE, and it seems to work better. Haven't tested it too much yet, but seems to work thus far. I'm using IE 7 BTW.

    Sayed Ibrahim Hashimi
    www.sedodream.com
    Thursday, May 08, 2008 12:19 AM
    Moderator
  • Hi,

    I disabled debugging script from IE, and it seems to work better. Haven't tested it too much yet, but seems to work thus far.

    I'm using IE 7 BTW.

     

    Sayed Ibrahim Hashimi
    www.sedodream.com

    Thursday, May 08, 2008 12:20 AM
    Moderator
  • This has been happening for a while under VS2008.  Looking forward to the solution.

    Friday, May 09, 2008 3:44 PM
  • How many people who are having this problem are also setup to debug into the .NET source code?

    Tuesday, May 13, 2008 7:02 PM
    Moderator
  • I am not setup on this machine for stepping into .NET source.


    Sayed Ibrahim Hashimi
    www.sedodream.com
    Tuesday, May 13, 2008 7:47 PM
    Moderator
  • Thanks to the help of one extremely helpful customer, I was able to identify the problem last night. This is a bug in the debugger. 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, but I am not a JScript expert, so I am sure there are other possible reasons as well.

    Now that we have finally found the cause, we are going to work on getting a fix into future versions of Visual Studio. I will try my hardest to get this into Visual Studio 2008 SP1.

     

    In the mean time, there are a couple of work arounds which you can try:

    1. If you hit this problem, I believe you could detach the debugger and then re-attach.

    -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.

     

    Thanks to everyone's help and we are sorry that you are experiencing this issue,

    Gregg

    Thursday, May 15, 2008 5:02 PM
    Moderator
  • Thanks for the hint! I enabled 'Just my Code' and it's working again.
    Wednesday, October 01, 2008 1:13 PM
  • I was also experiencing this problem and after disabling script debugging everything worked again. Thanks!

    Hopefully this issue can be fixed in a subsequent service pack.

    Monday, January 26, 2009 10:26 PM
  • Hi,

    I follwed all the steps which are illustrated by Gregg, really it couldn't solve the issue .In VS-2008 not only this, lot of issues are still open

    1)If ur aspx page contains lot of controls and weight morethan 400kb.while browsing  if u do any changes in design and press Ctrl+s automatically Microsoft visual studio.Net encountered a problem need to restart u will get . I can challenge this error still alive

    2)Microsoft recommended  minimum 1 GB to use, but for 2GB also vs.net(2008) launching time takes more...........

    remaining i will post soon .................

    Monday, July 06, 2009 4:25 PM
  • The problem still not fixed in VS 2013. Very bad :(
    Tuesday, October 06, 2015 5:44 PM
  • I just received the error mentioned in this thread in

    Microsoft Visual Studio Professional 2015
    Version 14.0.23107.0 D14REL



    Monday, November 09, 2015 11:36 PM
  • I receive this error daily and it's f***ing infuriating. I have to restart my debugging session, and that's really difficult in a data-driven environment where I have to drop a db and start over.

    It has nothing to do with IE script debugging, mine is disabled. It happens during MVC/WebAPI debugging. Definitely seems like a race condition (I'm on fairly fast hardware).

    Visual Studio Professional 2015
    Version 14.0.25425.01 Update 3.

    Windows 10 Professional

    Friday, September 30, 2016 8:18 PM
  • 9 years later, the exact same bug still exists in Visual Studio 2015 (14.0.25425.01 Update 3)
    Wednesday, January 25, 2017 7:02 PM
  • Yes it does, I just started getting this error again today ... so clearly there is a basic flaw in the debugger of .NET managed applications.  In my case Web app using Silverlight 5.

    Microsoft's responses will be:

    1.  Please provide a project sample so we can replicate.  Of course no developer has the time to create replication samples for Microsoft and we can't provide our entire application because they are confidential.

    2.  We can't reproduce this problem.

    3.  Wipe your PC and re-install Windows and Visual Studio from scratch, I'll mark this as answered.

    Honestly, I have no idea why Microsoft even bother keeping these forums around?  

    Cheers, Rob.




    Sunday, January 29, 2017 11:19 PM
  • Hi,

    I have recently run in the same exact situation.

    I seem to have come up with a workaround (sort of).

    I have usually 3 project starting for my debug sessions: 2 MVC REST services and a WPF application.

    I usually encounter the problem when debugging the WPF application.

    I changed the startup projects list to run the REST services without debugging them and, for now, the problem was solved.

    Hope this helps.


    Stefano Padovan

    Monday, February 20, 2017 10:59 AM
  • I am using VS2015 and I have tried variants of this solution with no success. I have also tried the following about installing  “Tools for Universal Windows Apps Development”  ( https://social.msdn.microsoft.com/Forums/vstudio/en-US/c9936d80-087d-4cad-93bf-ca4873889773/the-debugger-cannot-continue-running-the-process?forum=vsdebug ) but that didn't seem to work either. I, of course, turned off all Javascript debugging on IE. As for "detaching" the debugger the only option I see on VS2015 is "Detach All" and when I do that the whole IDE freezes up.

    Is there ANY fix out there for this issue????

    Thursday, June 01, 2017 7:55 PM