Click to See Complete Forum and Search --> : Debugging


Cakkie
May 16th, 2002, 09:00 AM
When debugging a VB.Net application in the IDE, I can't change the code when I'm in break mode. Is this supposed to be so? This means that whenever you need to change like say 1 or 2 characters, you need to stop the application, modify the code and restart the code. This is really irritating when trying to debug a piece of code that takes two minutes to come to the point where I need to debug.

This is costing me a lot of time (an patience).

Must I place this in the list of nice things we had in VB6, but not in VB.Net?

vchapran
May 16th, 2002, 09:59 AM
It bothers me too much too. But I think this it one part of the price we have to pay for all advantages. Unlike in VB6 we are running compiled EXE. Have you paid attention if you have a problem with your code you can still run your app but it doesn't have any changes you made since last successful run
Vlad

Iouri
May 16th, 2002, 02:47 PM
Originally posted by Cakkie
When debugging a VB.Net application in the IDE, I can't change the code when I'm in break mode. Is this supposed to be so?

Yes it is. It's a "new" feature of VB.NET

Cakkie
May 16th, 2002, 05:01 PM
Originally posted by Iouri


Yes it is. It's a "new" feature of VB.NET

Hmm, one of those "you call it a bug, we call it a feature" things. Oh well, I guess we'll just have to live with that...

softweng
May 16th, 2002, 07:16 PM
You can set whether or not you can edit the source while in debug mode.
Go to the Tools menu and selct Options.
Then open the Debugging folder and select the Edit And Continue option.
There will be a check box labeled "Allow me to edit VB files while debugging"
Check it and see how that works. I have yet to try it but it may be what your looking for

Cakkie
May 17th, 2002, 01:08 AM
I haven't tried this yet, but it sounds really good. I'll try it as soon as I get home., Thanx

danprinz
July 9th, 2003, 01:06 AM
but its cost a little memory resource I think.
(not something u can't handle)

coolbiz
July 9th, 2003, 06:49 AM
Editing while in break mode "feature" was only added in 2003 version. Even then it does not work as VB6 since you have to actually restart the debugging process to incorporate your changes. Like softweng mentioned, it has something to do with running the EXE instead of interpreting the code :)

-Cool Bizs