Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Is there a way to know if changes applied to code will be ok for edit and continue?

$
0
0

Hi,

In debugger break mode, I make some code changes programmatically and I need to add some expressions to the Watch window. If my changes are not legal for edit and continue, then adding to Watch window will result with ugly messagebox. This messagebox is asking to edit the code or stop debugging. Is there a way to query VS if changes made to the code are ok for edit and continue? So that I will not add anything to Watch window if the code is illegal?

Or eventually, can I register to some debugging event or something which would allow me to detect illegal EnC attempt, cancel the messagebox and revert my changes to Watch window?

Regards


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>