Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we edit our code while running the application

Tags:

c#

debugging

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

like image 339
peter Avatar asked May 23 '26 14:05

peter


2 Answers

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.

like image 102
Groo Avatar answered May 25 '26 04:05

Groo


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.

like image 22
user200783 Avatar answered May 25 '26 04:05

user200783



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!