VB.net Edit-And-Continue: ignore "unable to apply this change while debugging"

Posted by FastAl on Stack Overflow See other posts from Stack Overflow or by FastAl
Published on 2010-05-13T19:42:19Z Indexed on 2010/05/13 19:54 UTC
Read the original article Hit count: 333

Filed under:
|

When using VB.Net (2008) and paused in debugging, Edit-And-Continue is a great time-saver. However if you change any module/class-level information (variable, sub/function signature, etc), you get the error message like this:

"unable to apply this change while debugging"

While I can understand the technical challenge to making this work (and why it would be hard), it leaves me in a tight spot with just a few options:

1) Restart and recompile and get the program back to the same state
2) Continue debugging without making the change, and risk forgetting
3) Type up a reminder note to make the change

All of which are annoying.

Now I know that option '4) Just actually make the change' may not be possible. but does anybody know how to enable the following 'technically easy' possibility?

4) Let me change the code, get it flagged with the purple squiggly underline, so I can save it, but just ignore the change until recompile

I have checked the Tools|options|debug|edit and continue, nothing appears to let me do this.

thanks!

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about edit-and-continue