.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Modifying Code During Debug

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
256 Views, 4 Replies

Modifying Code During Debug

When developing VB6 DLL's it was possible to reference the started DLL and
then edit code after a break point was reached. The way I've started to
develop .Net DLL's is to use Debug -> Start with AutoCAD specified as the
external program to start when debugging.

The problem is that I can't seem to edit the code after a Break point is
reached. Is there any way to accomplish this?? I's definitely a hindrance.

Dale
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

Dale,

From the menu Tools | Options | Debugging | Edit and Continue ... check the
option "allow me to edit VB files while debugging"

It'll let you type in code after a break. But you won't be able to run the
new code (like in VB 6) until you re-compile. I've read that break, edit &
continue will come back in VS.net 2005. I can't wait!

Marty


"Dale Levesque" wrote in message
news:4950751@discussion.autodesk.com...
When developing VB6 DLL's it was possible to reference the started DLL and
then edit code after a break point was reached. The way I've started to
develop .Net DLL's is to use Debug -> Start with AutoCAD specified as the
external program to start when debugging.

The problem is that I can't seem to edit the code after a Break point is
reached. Is there any way to accomplish this?? I's definitely a hindrance.

Dale
Message 3 of 5
cgay
in reply to: Anonymous

Dale,
You are using VS.NET 2002 or 2003 I presume. The feature you are talking about was/is called "Edit and Continue". Unfortunately, M$ decided to take it out of VB.NET 2002/03. I believe it will be coming back, in VS 2005, due to an overwhelming negative response from the VB community.
In 2003 you can turn "Edit and Continue" on in the Tools->Options->Debugging->Edit and Continue->"Allow me to edit VB files while debugging", unfortunately, this is not the same "Edit and Continue" of old. It will allow you to edit the file, then it will prompt you to "Edit and Continue" or "Edit and Restart". "Edit and Continue" basically continues execution as if you hadn't made any changes until you restart the debugging session. "Edit and Restart" stops execution and restarts the debugging session from the beginning.

Regards,
CG
Message 4 of 5
Anonymous
in reply to: Anonymous

Thanks. Pretty lame. That is going to be annoying. I hope the upgrade comes
out soon. I'll try the beta to make sure it works.

Dale

wrote in message news:4950987@discussion.autodesk.com...
Dale,
You are using VS.NET 2002 or 2003 I presume. The feature you are talking
about was/is called "Edit and Continue". Unfortunately, M$ decided to take
it out of VB.NET 2002/03. I believe it will be coming back, in VS 2005, due
to an overwhelming negative response from the VB community.
In 2003 you can turn "Edit and Continue" on in the
Tools->Options->Debugging->Edit and Continue->"Allow me to edit VB files
while debugging", unfortunately, this is not the same "Edit and Continue" of
old. It will allow you to edit the file, then it will prompt you to "Edit
and Continue" or "Edit and Restart". "Edit and Continue" basically continues
execution as if you hadn't made any changes until you restart the debugging
session. "Edit and Restart" stops execution and restarts the debugging
session from the beginning.

Regards,
CG
Message 5 of 5
Anonymous
in reply to: Anonymous

Visual Studio 2005 is scheduled to ship on November 7.

Dan

"Dale Levesque" wrote in message
news:4950981@discussion.autodesk.com...
Thanks. Pretty lame. That is going to be annoying. I hope the upgrade comes
out soon. I'll try the beta to make sure it works.

Dale

wrote in message news:4950987@discussion.autodesk.com...
Dale,
You are using VS.NET 2002 or 2003 I presume. The feature you are talking
about was/is called "Edit and Continue". Unfortunately, M$ decided to take
it out of VB.NET 2002/03. I believe it will be coming back, in VS 2005, due
to an overwhelming negative response from the VB community.
In 2003 you can turn "Edit and Continue" on in the
Tools->Options->Debugging->Edit and Continue->"Allow me to edit VB files
while debugging", unfortunately, this is not the same "Edit and Continue" of
old. It will allow you to edit the file, then it will prompt you to "Edit
and Continue" or "Edit and Restart". "Edit and Continue" basically continues
execution as if you hadn't made any changes until you restart the debugging
session. "Edit and Restart" stops execution and restarts the debugging
session from the beginning.

Regards,
CG

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost