Does Edit and Continue work in VS2005?

Hi All,

After importing a VC6 project into VS2005, I cannot get Edit and Continue to work. What am I missing

Here are my project settings.

Compiler:

/Od /D "_DEBUG" /D "_WIN32_WINNT=0x0500" /D "WINVER=0x0500" /D "WIN32" /D "_WINDOWS" /D "_VC80_UPGRADE=0x0600" /D "_AFXDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Gy /Yu"stdafx.h" /Fp".\MyProj.pch" /Fo /Fd /FR /W3 /nologo /c /ZI /TP /errorReport:prompt

Linker:

/OUT:".\MyProj.exe" /NOLOGO /MANIFEST:NO /DEBUG /PDB:".\MyProj.pdb"
/SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF /MACHINE:X86 /ERRORREPORT:PROMPT

and Tools->Options->Debugging: Edit and Continue enabled.


Any help greatly appreciated.
thanks,


Answer this question

Does Edit and Continue work in VS2005?

  • sveroa

    yes - as I pointed out earlier, when I hit a breakpoint and try to make my code changes, the menu item is greyed out.

  • tlc660

    Strange. What project type do you have I just checked a win32 console app without problems.

    I'm still running 2005 RTM on this machine, did you install SP1

    --
    SvenC


  • James_Z

    I ran into a similar problem and for me it helped to switch the "Debugger type" to "Native only" in the project settings.

    Hth,
    Andreas


  • rako77

    What error do you get

    --
    SvenC


  • MatMc

    Hi,
    firstly, thanks for your help
    however, even with something as straighforward as shown, if I hit a breakpoint on the nRet decl/def, E&C is still greyed out.

    int _tmain(int argc, _TCHAR* argv[])
    {
    int nRet = 1;
    return nRet;
    }



  • lingga

    Also, please reply back with a link to your bug so that others can follow up on its status.

    Thanks in advance for taking the time to log the issue.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • qrli

    Yes, SP1 is still beta - think I heard that it might be Q2/2007 for release but not quie sure about that.

    So our systems are quite similar - only that I run on Win2003 and you on XPSP2 - both should be seen as quite stable for development.

    If you setup a new Win32 project with some code, does it behave the same Maybe there are some code constructs which disable edit&continue

    --
    SvenC


  • dizzyjay

    Are you remote debugging

  • shyma

    it's a Win32 native app, running on WinXP Pro (SP2)
    is SP1 for vs2005 still in beta - I don't have it installed.

  • Dennis Jelavic

    Just to be sure, you are typing code and yet the button remains grayed out The button should start in a grayed out state and change once you have code changes that need to be rebuilt.

  • Rascal123

    whenever a breakpoint is encountered, the Debug->Apply Code Changes menu item is always greyed out.

  • coolcars

    I have a simular problem. we have a solution which contains mostly C++ projects (about 8 DLL's and one EXE. It also contains a C# project.

    The active startup object (the C++ EXE) has its debugger type set to "Native"
    However, Edit and Continue seems to behave rather strangly.

    It appears to work but the "Apply code changes" toolbar button/menu item is disabled. However, if I set a breakpoint and edit some code after the breakpoint is reached, it does appear, upon continue, to apply the code changes for me - it just dosn't ever let me press the toolbar button.

    Now, this only appears to have started happening recently, but Im not sure if it was:
    a) After using the profiler
    b) After switching debugging to "Mixed" - of course E&C is disabled (and then back to native - which you would expect to re-enable E&C as it was)
    c) After installing VS2005 SP1

    It's not just me this is happening to - it applies to other VS2005 development machines belonging to other team members. I guess its project/solution specific but I havnt tried another solution yet (unfortunatly I have real work to do and since moving to VS2005, I seem to be spending too much time with IDE bugs of various sorts :( ).

    Thanks,
    Phil


  • TomPearson

    thanks for your reply
    No, I'm not remote debugging

  • Roshan_wp

    well that definitely seems like a bug. I spoke to the debugger folks and they'll be sure to investigate this. Please log a bug over at http://msdn.microsoft.com/productfeedback

    Thanks!



  • Does Edit and Continue work in VS2005?