Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnC: Visualize changed statements that have not been executed yet #75110

Open
Tracked by #49001
tmat opened this issue Sep 13, 2024 · 0 comments
Open
Tracked by #49001

EnC: Visualize changed statements that have not been executed yet #75110

tmat opened this issue Sep 13, 2024 · 0 comments

Comments

@tmat
Copy link
Member

tmat commented Sep 13, 2024

When making multiple changes in a large application during debugging it might be difficult to keep track of which changed statements have already been executed and which ones have not. The user might not realize that certain changes did not take effect in the app because the code has not been executed. Some examples include:

  • an update to an entry-point or other code path that only executes once wouldn't have any effect on the app until the app is restarted or re-initialized (we now report warning for entry-point methods, which are easy to determine at compile-time, but other run-once code may not be)
  • an update to a static field initializer does not have an effect after the type has been loaded.
  • an update to a field initializer only affects new instances of the type
  • update to a variable assignment does not change the value of the variable until the assignment is re-executed
  • in Hot Reload mode, an update to a method body only affects new invocations of the method

We can assist the user with determining which changes have been executed. We would display adornments in the editor UI that allow the user to immediately see the state of each changed statement.

@tmat tmat self-assigned this Sep 13, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Sep 13, 2024
@tmat tmat added Interactive-EnC and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Sep 13, 2024
@CyrusNajmabadi CyrusNajmabadi added this to the 17.13 milestone Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants