-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Step becomes a "go" in .NET 9 #109785
Comments
Tagging subscribers to this area: @tommcdon |
I'm seeing this all the time. I hadn't seen this issue before. I reported the problem here a few days ago: https://developercommunity.visualstudio.com/t/Single-stepping-is-broken-when-targettin/10802855. I can reproduce it with the following simple steps:
NOTE: This behavior is erratic, so you may need to repeat a few times if it seems to work correctly. |
Same problem here. |
Hi @f2bo! |
Hi @thaystg,
Almost every time (see video below).
In this example, it usually happens on the first iteration of the foreach loop. I should mention that I've had this problem in other code and it's not always associated with a loop. In fact, in one of my tests, I saw it happen on a
Sure. Here it is. The video shows the program being executed with F10, 3 times in succession. The first time, it run through the 5 iterations without failing, though I have to say that this is much less frequent. The remaining 2 times, instead of single-stepping, it resumes execution on the first iteration. |
Interesting fact. After disabling CET in the project file, I have been unable to reproduce the problem so far, at least in this simple example. <CETCompat>false</CETCompat> |
Reactivated for backport to 9.0 |
Same problem here. |
I'm getting this all the time, both on my main machine and laptop. |
Fixed via #110533 |
Description
.NET 9 contains a regression where ICorDebugStepper's are not always firing. The issue is non-deterministic, and causes intermittent failures in our debugging tests, and we have had a few customers reports of the problem.
Reproduction Steps
A Microsoft employee can reproduce this problem by:
Expected behavior
Stepper should complete
Actual behavior
Stepper sometimes fails to detect when it is complete and this the debugger behaves as if there was no stepper
Regression?
This regressed between .NET 8 and .NET 9
Known Workarounds
None
Configuration
So far all of the reports are from Windows, but I don't know if this is actually a causal connection.
We have at least mostly seen this on x64, but again, I am not sure if that is actually a causal connection or just because that is the most frequent configuration
Other information
No response
The text was updated successfully, but these errors were encountered: