Edit and Continue for VSTA v2

Latest post 03-07-2010 9:04 PM by Tyler8. 10 replies.
  • 06-22-2009 3:06 PM

    Edit and Continue for VSTA v2

    Hi,

     

    How can I enable VSTA v2 IDE to be able to debug with Edit and Continue feature?

     

    Thanks,

  • 06-22-2009 3:26 PM In reply to

    • Gary
    • Top 10 Contributor
    • Joined on 07-13-2006
    • Posts 371

    Re: Edit and Continue for VSTA v2

    Using the ShapeAppMacroRecording SDK sample, I've gotten 'Edit and Continue' to work in the VSTA IDE with 'standard add-ins', both VB and CSharp, but not with macro add-ins.  Not sure why.  How are you using the VSTA IDE?  Are you using it standalone or integrated? 
  • 06-22-2009 3:51 PM In reply to

    Re: Edit and Continue for VSTA v2

    Integrated.

    Example: I have an application that loads an add-in. The IDE is lunched and then the user goes into the debug mode. Once the break point is hit, I would like to be able to change the code or add new code. Is that possible?

  • 06-22-2009 5:18 PM In reply to

    • Gary
    • Top 10 Contributor
    • Joined on 07-13-2006
    • Posts 371

    Re: Edit and Continue for VSTA v2

    Yes, this is definintely possible for the case I described (application-level addins).  We will investigate why edit and continue is not working for macro project debugging and let you know what we learn. 

  • 06-23-2009 3:34 PM In reply to

    Re: Edit and Continue for VSTA v2

    Gary,

     

    I when and downloaded you demo for the ShapeAppMacroRecording (ShapeAppMacroRecordingCSharp-WithIPHTerminateOrphanedVSTA.zip).

    Using this as a demo, in debug mode, I am unable to modify the code. I am getting the “Edit and Continue” message prompt saying “Changes are not allowed when the debugger has been attached to an already running process or the code being debugged was optimized at build or run time.”

    In project properties, in build section, I unchecked optimize code and checked define debug constant.

    Is there a way to allow for Edit and Continue in an VSTA v2 when an addin is loaded with an non-destructive debugging method?

     

    Thanks,

  • 06-23-2009 4:01 PM In reply to

    • Gary
    • Top 10 Contributor
    • Joined on 07-13-2006
    • Posts 371

    Re: Edit and Continue for VSTA v2

    We are looking for a way to do this. Will keep you posted

     

  • 06-23-2009 4:23 PM In reply to

    Re: Edit and Continue for VSTA v2

    Thanks

  • 01-20-2010 8:33 AM In reply to

    Re: Edit and Continue for VSTA v2

    Hi Gary,

    I'm trying the same demo (ShapeAppMacroRecording) facing with the same trouble. Did you already take a look on it? Thanks

  • 01-25-2010 9:35 PM In reply to

    • Gary
    • Top 10 Contributor
    • Joined on 07-13-2006
    • Posts 371

    Re: Edit and Continue for VSTA v2

    For seamless/nondestructive debugging, VSTA debugger attaches to the add-in's process. Therefore, in the case of nondestructive debugging, Edit and Continue is not supported.  Edit and Continue is supported for VSTA destructive debugging.

  • 03-07-2010 9:03 PM In reply to

    • Tyler8
    • Top 150 Contributor
    • Joined on 03-08-2010
    • Posts 2

    Re: Edit and Continue for VSTA v2

    Ok, thats understandable Gary. It still would be nice to have it supported for both types but oh well. Either way, thanks for keeping us posted. :)

  • 03-07-2010 9:04 PM In reply to

    • Tyler8
    • Top 150 Contributor
    • Joined on 03-08-2010
    • Posts 2

    Re: Edit and Continue for VSTA v2

    Ok, thats understandable Gary. It still would be nice to have it supported for both types but oh well. Either way, thanks for keeping us posted. :)

Page 1 of 1 (11 items) | RSS
Copyright Summit Software Company, 2008. All rights reserved.