Editing during Debug

  • Thread starter Thread starter Bruce A. Julseth
  • Start date Start date
B

Bruce A. Julseth

When debugging a C# application, I can make changes to the code and restart.
Is there a way to do this in VB.NET? Right now, I have to kill the
application, make the change, then rerun it. It seems to me that back in
VB6, I could make code changes while debugging, set the cursor to the line
I'd the line I'd like to have the application go to, and restart from that
line.

Since I seem to be able make changes in while debugging C#, I assume I can
do it in VB.NET, but can't seem to find out how.

Appreciate it if someone would tell me how I do this.

Thanks..

Bruce
 
Bruce,

Bruce A. Julseth said:
Since I seem to be able make changes in while debugging C#, I assume I can
do it in VB.NET, but can't seem to find out how.

"Tools" -> "Options" -> "Debugging" -> "Edit and continue" -> [X] "Allow me
to edit VB files while debugging"
 
THANKYOU!

Can you believe I never decided to ask this question, over the last 4 months
of learning VB.NET I just thought this was the way it was and didn't
question it.

This will save so much time. Thankyou again.

Kind Regards,

Michael Proctor

Herfried K. Wagner said:
Bruce,

Bruce A. Julseth said:
Since I seem to be able make changes in while debugging C#, I assume I
can
do it in VB.NET, but can't seem to find out how.

"Tools" -> "Options" -> "Debugging" -> "Edit and continue" -> [X] "Allow
me to edit VB files while debugging"
 
Michael,

You will see that it is exactly the C# way. Not the VB6 way.

Maybe you did not expect that, however before you start thinking "why is it
not doing it in that way".

The VB6 way will (almost however not complete the same as I thought) be
returned in version 2.0

Cor
 
Cor,

Cor Ligthert said:
You will see that it is exactly the C# way. Not the VB6 way.

Why should that be the C# way? That's an option which is set by default in
C#, but for some unknown reason not set in VB.NET. Maybe Microsoft didn't
want to confuse former VB6 users with a "broken" Edit and Continue.
The VB6 way will (almost however not complete the same as I thought) be
returned in version 2.0

ACK.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top