.NET

Reply
*Dale Levesque
Message 1 of 5 (113 Views)

Modifying Code During Debug

113 Views, 4 Replies
09-08-2005 11:14 AM
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
*Marty
Message 2 of 5 (113 Views)

Re: Modifying Code During Debug

09-08-2005 01:20 PM in reply to: *Dale Levesque
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
Distinguished Contributor
cgay
Posts: 125
Registered: ‎08-02-2005
Message 3 of 5 (113 Views)

Re: Modifying Code During Debug

09-08-2005 01:24 PM in reply to: *Dale Levesque
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
*Dale Levesque
Message 4 of 5 (113 Views)

Re: Modifying Code During Debug

09-08-2005 01:30 PM in reply to: *Dale Levesque
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
*J. Daniel Smith
Message 5 of 5 (113 Views)

Re: Modifying Code During Debug

09-08-2005 08:08 PM in reply to: *Dale Levesque
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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.