Hi all, I imported a VC6 project
into VS2005, and I cannot get E&C to work - whenever I hit a
breakpoint, the menu option is always greyed out. I have the following compiler settings: /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" /W3 /nologo /c /ZI /TP /GR /errorReport:prompt and linker settings: /NOLOGO /MANIFEST:NO /DEBUG /SUBSYSTEM:WINDOWS /MACHINE:X86 /ERRORREPORT:PROMPT WS2_32.lib Version.lib Winspool.lib Kernel32.lib and, Tools->Options->Debugging: Edit and Continue -> Enabled. Any help greatly appreciated. Phil![]()

Does Edit and Continue work in VS2005?
Takezo
ghe
In your linker settings as pasted above i notice there is no /PDB option, you cant edit and continue unless there is a "program database for edit and continue"
So check your linker options under "Linker->Debugging", "Generate program database file", this entry should be "$(TargetDir)$(TargetName).pdb"
There are several other linker options which may disable edit and continue (as listed in the help docs)
ie:
The following linker options disable Edit and Continue:
Setting /OPT:REF, /OPT:ICF, or /INCREMENTAL:NO disables Edit and Continue with the following warning:
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /OPT
specification
Setting /ORDER, /RELEASE, or /FORCE disables Edit and Continue with this warning:
LINK : warning LNK4075: ignoring /INCREMENTAL due to /option
specification
Setting any option that prevents the creation of a program database (.pdb) file disables Edit and Continue with no specific warning.
MarkTsai
thanks for your reply
unfortunately, I have all these options set, but still can't E&C...
Mike75
In my case, F5 just continues execution after the breakpoint. In order for any changes to be applied, I usually need to do an Alt-F10 (at least that's what I do in VS6) - in VS2005, the same keystrokes don't work (for me), as the menu item (Debug->Apply Code Changes) is greyed out.
James N
Appreciate your comments, thanks.
My original posting had an error in that I forgot to add the pdb option, but I think it was because I had been playing around with various options b4 posting - however, even with generating the pdb again, there is still no E&C - the option is greyed out whenever I hit a breakpoint.
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
Urban Terror target
Does pressing F5 work for you
Astennu
Assume your program is called "HelloWorld"
1) Goto Project->HelloWorld Properties
2) On the left expand "Configuration Properties"
3) Expand "C/C++"
4) On the left, Select "General"
5) On the right, change "Debug Information Format" to "Program Database For Edit And Continue (/ZI)"
5) On the left, Select "Optimization"
6) On the right, change "Optimization" to "Disabled (/Od)"
7) On the left, expand "Linker"
8) On the left, select "Debugging"
9) On the right, change "Generate Debug Info" to "Yes"
10) Click ok
11) Set your breakpoints
12) Rebuild your application
Yang Tono
The issue is being discussed now at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=873780&SiteID=1
Thanks, Ayman Shoukry VC++ Team