Groups | Blog | Home
all groups > vb.net > february 2007 >

vb.net : How to change code during debugging



JM
2/24/2007 6:29:40 PM
Hi,

I used to chage my code during debugging with Visual Studio 2003 (I just
stopped the code using a break point and VS2003 allowed me to change the
code, and continue debugging), but now with Visual Studio 2005 I am not able
to do it.

Can anyone tell me how I need to configure VS2005 so it allow me to change
code during debugging?

Thanks,

Jamie

RobinS
2/25/2007 4:27:59 PM
When you set a breakpoint, and run your app, what does it do? Nothing? Are
you sure it's running that statement? Because edit-and-continue works fine
for me.

Robin S.
---------------------------------
[quoted text, click to view]

Phill W.
2/26/2007 1:01:25 PM
[quoted text, click to view]

VS'2003 allowed you to change the source code while the application was
running. However, in all but a /very/ few cases, it made no difference
- the change was /not/ taken into account until you /restarted/ the
application.

[quoted text, click to view]

Edit-and-Continue really /does/ work in /Visual Basic/ 2005 (don't know
about the other languages); the option to turn it on is buried in

Tools > Options
Debugging / Edit and Continue.

HTH,
AddThis Social Bookmark Button