MSDN > 論壇首頁 > Visual Studio Debugger > Debugger error: Unable to Step. The operation could not be completed...
發問發問
 

已答覆Debugger error: Unable to Step. The operation could not be completed...

  • Wednesday, 16 April, 2008 15:52dnisee01 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    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

解答

  • Thursday, 15 May, 2008 17:02Gregg MiskellyMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆

    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

所有回覆

  • Tuesday, 29 April, 2008 1:15Will Buchanan 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

     

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

     

    Did you make any progress on it?

  • Tuesday, 29 April, 2008 13:20dnisee01 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    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 

  • Wednesday, 30 April, 2008 19:59GSchiff 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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, 7 May, 2008 14:41Sayed Ibrahim Hashimi版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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, 7 May, 2008 21:59Gregg MiskellyMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    I have been investigating this issue with one customer. I haven't yet gotten to bottom of this.

     

    Gregg

  • Thursday, 8 May, 2008 0:19Sayed Ibrahim Hashimi版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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, 8 May, 2008 0:20Sayed Ibrahim Hashimi版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    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

  • Friday, 9 May, 2008 15:44Jon Stewart 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    This has been happening for a while under VS2008.  Looking forward to the solution.

  • Tuesday, 13 May, 2008 19:02Peter RitchieMVP, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    How many people who are having this problem are also setup to debug into the .NET source code?

  • Tuesday, 13 May, 2008 19:47Sayed Ibrahim Hashimi版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    I am not setup on this machine for stepping into .NET source.


    Sayed Ibrahim Hashimi
    www.sedodream.com
  • Thursday, 15 May, 2008 17:02Gregg MiskellyMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆

    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

  • Wednesday, 1 October, 2008 13:13RicknB 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Thanks for the hint! I enabled 'Just my Code' and it's working again.
  • Monday, 26 January, 2009 22:26BTabios 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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, 6 July, 2009 16:25sudheer_kumar 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

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