microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
231 stars 13 forks source link

[BUG] <title>App aways block on Dotnet 8 with vs code. #1167

Open dingxiaolong opened 5 months ago

dingxiaolong commented 5 months ago

Describe the Issue

Everything works fine on Dotnet 7 with vs code , but can not use exception breakpoint , so switch project from 7 to 8. However ,app always block ,I guess this related to the new exception breakpoint function

Steps To Reproduce

No response

Expected Behavior

No response

Environment Information

No response

WardenGnaw commented 5 months ago

@dingxiaolong Could you elaborate what is blocked and how you started the scenario? For example, could you share a minimal project that encounters this issue?

Thank you.

dingxiaolong commented 5 months ago

@WardenGnaw : Thanks for your feedback .
I use M1 pro mac and run a Dotnet.iOS project . Dotnet version is 8.0.300. Our company have many Dotnet iOS project . The scene is when I open "All Exceptions" feature before app start in one project .

image

First it will go into a exception breakpoint , click continue , but app will never go into next step .

image

This project works fine on vs studio for mac , and dotnet 7 on vs code . I can reproduce it every time with dotnet 8 when open All exceptions feature.

I try other apps , can start successful when open All exceptions feature , but also block sometimes (every button can not click, I need hard close it ), but the issue on other project I can not reproduce each time .

Sorry but this is a enterprise project , I can not share the code .

Let me know if you need more info .

mauroa commented 4 months ago

Thanks @dingxiaolong. Do you still have a repro if you update the C# extension to latest pre-release. Some fixes have been made in there around the debug experience, so I wonder if you still face the issue after updating the extension. I encourage you to also update .NET MAUI. Please let me know how it goes.

dingxiaolong commented 4 months ago

@mauroa , thanks for you feedback , I switch c# , c# dev, MAUI to pre-release feature , unfortunate still have this issue .. Any breakpoints , if you try to click the "step into" , maybe 5 times , then the vscode will dis-connect with the simulator .

image

I must to kill the app , and re-start it again . Let me know if you need more info .

Our team want to migrate to vscode from VS mac this year . Hopes this bug can be fixed .. Many thanks .

github-actions[bot] commented 4 months ago

@mauroa, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer.

dingxiaolong commented 4 months ago

I provide a video to see if can help . As you can see in the video , I use the latest preview c#, c# dev and MAUI , update on 2024-06-25.
Then when I run my app , I try to step into breakpoint step by step , then all of sudden , vs code disconnect with my simulator , and nothing can do only kill the app run again .

https://github.com/microsoft/vscode-dotnettools/assets/21192107/40fec8a7-cbe7-4783-a974-6755e790ddf2