开发者

Can we edit our code while running the application

开发者 https://www.devze.com 2022-12-09 20:27 出处:网络
i did this work Tools->Options->Debugging \'Break all processes when one process breaks\' is enable开发者_StackOverflowd that time also same problem existingVisual Studio has a feature called Edit and

i did this work Tools->Options->Debugging 'Break all processes when one process breaks' is enable开发者_StackOverflowd that time also same problem existing


Visual Studio has a feature called Edit and Continue. This means you can break the execution, do the change, and then resume it (providing that the changes can be compiled and that the change is supported by Edit and continue).

In other words, you cannot exactly change the code while the app is running, but you can break it shortly and change the source using the debugger.


Visual Studio supports "Edit and Continue": a feature which allows you to pause using the debugger, edit your code, then resume execution. An article on Edit and Continue in C# is available here.


You can't if you are target a 64 bit machine however.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号