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
版权声明:本文标题:visual studio - .NET 9 Debugger Step Over (F10) Behaving Like Continue (F5) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736308970a1933851.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论