admin管理员组

文章数量:1122846

I'm experiencing an issue with debugging in .NET 9 after upgrading from .NET 8. When using the debugger's Step Over function (F10), it most of the time behaves as if I pressed Continue (F5) instead.

What I've tried:

  • Created a fresh project file for my project
  • Tested in both Visual Studio and JetBrains Rider
  • Waited for potential early adoption issues to be resolved
  • Searched for similar issues online

Environment:

  • .NET Version: 9
  • IDEs: Visual Studio Community 2022 (17.12.1) and JetBrains Rider (2024.3)
  • Previous working version: .NET 8

Has anyone else encountered this issue or knows of a solution?

  • This is C# Winforms
  • A tiny console application works, but my project doesn't
  • a small windows forms project (new) also works
  • I can put a breakpoint in a random piece of code and it happens within 3 presses. (not function or class specific)
  • All software is up to date

Extra info:

  • I don't know how to reproduce it. I can't share my project
  • This project was using postSharp and i could see how that could be related. But i have removed postSharp + cleared Bin and Obj folders
  • This post is part of my own analysis. Seems very odd i am the only one.
  • I don't see any way my code could influence the debugger like that, so it seems like a Microsoft bug
  • This project started in .NET4.8 and has been upgraded to V5 V7 V8, so i have experience with upgrading
  • I will wait a little and see if i get responses here
  • Next logical step would be a bug report it think, anyway i will update this post in the future with my solution: this project will go to 9 at some point. But right now this isn't a high priority.

Update:

  • I noticed hot reload was not working. (no errors, just no code updates)
  • I'm back on Visual Studio 17.10 and back on SDK8
  • Hot reload is working again

Addressing the keymapping issues below in the comments:

  • Yes i thought of that too, i checked the key mappings and they are ok
  • I also tried using the menu, so actually clicking "step over" and same problem

Update: It is a bug and I'm not the only one experiencing this:

本文标签: visual studioNET 9 Debugger Step Over (F10) Behaving Like Continue (F5)Stack Overflow