Windows Vista Beta | WinVistaBeta.com - Message | Edit & Continue does not work

November 21, 2008  
Subject: Edit & Continue does not work
Group: microsoft.public.vstudio.general
Date: 9/5/2008 6:25:20 AM
From: Sylvain SF [Email Address Protection]

conf: VS 2005 Pro. Edition with:
- MS VC++ 2005
- MS Web Appl. Prjts 2005 (unwanted but installed by SP1)
- MS VS 2005 Pro SP1

the "Edit & Continue" option (menu Debug, cmd Alt-F10)
is always disabled.

under "Tools", "Options", "Debug", "Edit & Continue"
the "Enable Edit & Continue" checkbox *is* checked.

the changes *do* comply with limitations described in
<http://msdn.microsoft.com/en-us/library/aa290571.aspx>
(most of changes are modifications of immediate numerical
values in methods or Win32 API calls).

how to enable this feature ?

Sylvain.

Back
Subject: Re: Edit & Continue does not work
Group: microsoft.public.vstudio.general
Date: 9/5/2008 12:33:46 PM
From: David Lowndes [Email Address Protection]

>conf: VS 2005 Pro. Edition with:
>- MS VC++ 2005
>- MS Web Appl. Prjts 2005 (unwanted but installed by SP1)
>- MS VS 2005 Pro SP1
>
>the "Edit & Continue" option (menu Debug, cmd Alt-F10)
>is always disabled.
>
>under "Tools", "Options", "Debug", "Edit & Continue"
>the "Enable Edit & Continue" checkbox *is* checked.
>
>the changes *do* comply with limitations described in
><http://msdn.microsoft.com/en-us/library/aa290571.aspx>
>(most of changes are modifications of immediate numerical
>values in methods or Win32 API calls).
>
>how to enable this feature ?

Sylvain,

Have you compiled your project with the /ZI option?

Dave

Back
Subject: Re: Edit & Continue does not work
Group: microsoft.public.vstudio.general
Date: 9/5/2008 1:07:26 PM
From: Sylvain SF [Email Address Protection]

David Lowndes wrote on 05/09/2008 21:33:
>>
>> how to enable this feature ?
>
> Have you compiled your project with the /ZI option?

Thks Dave, but yes the /ZI switch is present.

command line is:
/Od /I "\src" /I ".\src" /I ".\\" /D "WIN32" /D "_DEBUG" /D "_WINDOWS"
/D "_VC80_UPGRADE=0x0600" /D "_MBCS" /Gm /EHsc /RTC1 /MTd /Yu"stdafx.h"
/Fp"\out\debug\AppName/AppName.pch" /Fo"\out\debug\AppName/"
/Fd"\out\debug\AppName/" /FR"\out\debug\AppName\\" /W3 /nologo /c /ZI
/TP /errorReport:prompt

(actual application name replaced by 'AppName' herebefore).

Sylvain.

Back
Subject: Re: Edit & Continue does not work
Group: microsoft.public.vstudio.general
Date: 9/5/2008 2:52:10 PM
From: David Lowndes [Email Address Protection]

>> Have you compiled your project with the /ZI option?
>
>Thks Dave, but yes the /ZI switch is present.

I assume you're targeting x86, not x64?

In the linking, check you're not getting LNK4075.

If you create a new project (say a Win32 console one), does EnC work
there?

Dave

Back
Subject: Re: Edit & Continue does not work
Group: microsoft.public.vstudio.general
Date: 9/6/2008 5:06:24 AM
From: Sylvain SF [Email Address Protection]

David Lowndes wrote on 05/09/2008 23:52:
>
> I assume you're targeting x86, not x64?

right. (under x86 system).

> In the linking, check you're not getting LNK4075.

linker does not send any warning or error.

linker command line does not contain relevant switches, basically:
/INCREMENTAL /NOLOGO /MANIFEST /MANIFESTFILE:"sooLongName"
/NODEFAULTLIB:"libc" /DEBUG /PDB:"xxx.pdb" /SUBSYSTEM:WINDOWS
/MACHINE:X86 /ERRORREPORT:PROMPT someLibs.lib

> If you create a new project (say a Win32 console one), does EnC work
> there?

when just created yes (at least for the 5 tries I launch it),
actually I observe 3 scenario:
- E&C always working, for such empty project
- E&C available once: E&C is available when debugger starts
but it disables itself upon first use,
- E&C not available: E&C is not available when debugger starts,
it seldom becomes available when I set a breakpoint near the
modification (in same function), in these cases the debugger
asks for a update of the binary (the E&C item also becomes
available) OR the debugger steps thru the old code w/o any
warning (even with "Require source files to exactly match
the original version" checked).

it looks like a matter of luck more than a reliable setting.


btw, the editor refuses to find & display definition of any functions
imported thru the .pch file (RT, Win32 API, ...) is there something
special to do to have these files 'intellisensed'.

Sylvain.

Back
Subject: Re: Edit & Continue does not work
Group: microsoft.public.vstudio.general
Date: 9/6/2008 4:38:26 PM
From: David Lowndes [Email Address Protection]

>> If you create a new project (say a Win32 console one), does EnC work
>> there?
>
>when just created yes (at least for the 5 tries I launch it),
>actually I observe 3 scenario:
>- E&C always working, for such empty project

>- E&C available once: E&C is available when debugger starts
> but it disables itself upon first use,

Do you have a means of reproducing this to order? If you do, try
submitting it as a bug report on connect.microsoft.com

>- E&C not available: E&C is not available when debugger starts,
> it seldom becomes available when I set a breakpoint near the
> modification (in same function), in these cases the debugger
> asks for a update of the binary (the E&C item also becomes
> available) OR the debugger steps thru the old code w/o any
> warning (even with "Require source files to exactly match
> the original version" checked).
>
>it looks like a matter of luck more than a reliable setting.

Again, if you can reproduce these to order, please report them.

>btw, the editor refuses to find & display definition of any functions
>imported thru the .pch file (RT, Win32 API, ...) is there something
>special to do to have these files 'intellisensed'.

Can you give an example of something common that doesn't work that you
expect should work?

Dave

Back
Subject: Re: Edit & Continue does not work
Group: microsoft.public.vstudio.general
Date: 9/6/2008 5:02:00 PM
From: Sylvain SF [Email Address Protection]

David Lowndes wrote on 07/09/2008 01:38:
>
> Do you have a means of reproducing this to order? If you do, try
> submitting it as a bug report on connect.microsoft.com

sure, will be nice, but so far I can only say "it does work" (useless)
or it depends on I don't know what.

>> btw, the editor refuses to find & display definition of any functions
>> imported thru the .pch file (RT, Win32 API, ...) is there something
>> special to do to have these files 'intellisensed'.
>
> Can you give an example of something common that doesn't work that you
> expect should work?

that is reproducible (in my env. at least)
if I right-click on "memcpy" & select 'show definition', the string.h
file is opened, the same right-click on OffsetRect or CreateWindow, or
also types like RECT or POINT provides an alert "The Symbol 'OffsetRect'
is not defined."

my .pch starts with
#include <windows.h>
#include <windowsx.h>
#include <CommCtrl.h>

Sylvain.


Back
Subject: Re: Edit & Continue does not work
Group: microsoft.public.vstudio.general
Date: 9/7/2008 2:02:45 AM
From: David Lowndes [Email Address Protection]

>that is reproducible (in my env. at least)
>if I right-click on "memcpy" & select 'show definition', the string.h
>file is opened, the same right-click on OffsetRect or CreateWindow, or
>also types like RECT or POINT provides an alert "The Symbol 'OffsetRect'
>is not defined."

Are you saying that show definition for RECT or POINT says
"OffsetRect" is not defined, or was that just an example for a use of
OffsetRect?

Assuming the latter, I can't reproduce it with one of my projects
(albeit I'm using VS2008 here).

You could try closing your solution and deleting the .ncb file to see
if that fixes it.

Dave

Back
Subject: Re: Edit & Continue does not work
Group: microsoft.public.vstudio.general
Date: 9/7/2008 8:53:15 AM
From: Sylvain SF [Email Address Protection]

David Lowndes wrote on 07/09/2008 11:02:
>
> Are you saying that show definition for RECT or POINT says
> "OffsetRect" is not defined, or was that just an example for a use of
> OffsetRect?

yes, asking for definition of RECT states that "RECT is not defined"
asking for definition of POINT states that "POINT is not defined"
asking for definition of OffsetRect states that "OffsetRect ..."

> You could try closing your solution and deleting the .ncb file to see
> if that fixes it.

deleting the .ncb does fix the issue
thanks for that tip, I will manage a daily-based deletion.

the workspace (or commercial, meaningless, "solution") contains
several projects with different set of includes, may be that fact
corrupts the unique base (MS has certainly some reasons to not
have a file per project, hmm, I hope they have some).

Sylvain.

Back