Use the Edit and Contiue functions in C # 2.0.

xiaoxiao2021-03-06  112

Applications: Visual C # 2005 Directory: Description What is Edit and Contiuteit and Continue to help developers How much use of EDIT and ContinueEdit and Continue how to work for EDIT and CONTINUE (E & C will be used later) It is a newly introduced debugging function from Visual C # 2005. This feature will allow you to change the code in the process of debugging, keep the debug state, without the need to end as before, compile, compile, and then debug. In this article, you will see what E & C, use E & C to ignore a Debugging Session. Finally, this article will explain how to use E & C's support in C #. What is EDIT and ContiuteE & C are a new feature that allows C # developers to determine a better adaptability when an error is made. Traditionally, when you discover a mistake in your program, you need to stop your program, fix your code, then compile from new. However, after the E & C function, you will not need to stop your program and from the new compilation. When you use the E & C function to change your code, these changes will be corrected in memory. The status of the application will remain, all variables will maintain the original value, all database connections will remain open, etc. . You can continue to run from your endpoint, but will be a new code. This will make you read and correct the code than before you have a faster book. The same feature will have a lot of help for testing. When a code test fails, you can set the endpoint in the wrong part, then click the position where the error occurs, according to the error message, you can correct this error immediately and continue to see if the other parts can be normal. Can EDIT and Contiute help developers? Imagine if you are commissioning a complex Windows Form application, you will change some code and single-step debugging to determine if your change is correct. Suddenly, you found a small error, a SQL query is wrong, stop the program, fix the error and then start from the beginning, this is really annoying.

转载请注明原文地址:https://www.9cbs.com/read-100762.html

New Post(0)