Re: VS 2005 Edit and Continue impossible after evaluating profiler tools



Hi Jeffrey,

I was using the evaluation version of YourKit .NET-Profiler. YourKit profiler integrates in Visual Studio (with a button next to the "start debugging"-button). When you start your program the profiler seems to run it in some kind of wrapper which sends status information via the local network (in this case localhost:10000). The profiler then attaches to this port to gather live information from the program.
You can still start your program with the normal JIT debugger with edit and continue working (!).
After deinstalling it doesn't work any more. Actually yesterday evening I installed the evaluation version of the profiler again - and edit and continue works (!??).
I dindn't get suitable help from YourKit.

It must have something to do with some registry value where the debugger properties are saved.

Do you have an idea? I don't want do have to buy a profiler to have a running system.

Thanks + kind regards

Fabian

Jeffrey Tan[MSFT] wrote:
Hi Fabian,

Thanks for your post!

Based on my understanding, you get "Changes are not allowed when the debugger has been attached to an already running process or the code being debugged is optimized." error when you are using Edit&Continue feature in VS2005 debugger. And you suspect it is caused by installed profiler tools.

Can you tell me what exact profiler you are using? Below is the list of known issues "When can't you do Edit-And-Continue?":
http://blogs.msdn.com/jmstall/archive/2006/02/13/cant_do_enc.aspx

As the link documented, Edit&Continue feature will not work if a profiler is attached, so I suggest you re-check if any profiler is doing attaching without your awareness.

Thanks!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.


Loading