Can we edit our code while running the application

…衆ロ難τιáo~ 提交于 2020-01-03 20:12:54

问题


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


回答1:


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.




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/1659835/can-we-edit-our-code-while-running-the-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!