Unity freezes while debbuging

Hello,
When attaching visual studio 2022 to unity while I have a breakpoint unity freezes and the breakpoint becomes hollow and a warning mark appears next to it saying it will never be reached. What can I do to fix it?
the debbuger was working before…
Thank you

Well, can it be reached? It would help if you posted the method in question and how you call it. Perhaps it is in fact in “dead code” that never gets called.

Or VS got confused (once again) that methods like Update() are called repeatedly and automatically by Unity. Restarting VS and Unity as well as deleting the .csproj/.sln files while both are closed could help.

1 Like

It happens everywhere I put the breakpoint. I will try deleating the .csproj/.sln files.

Thank you! It works now