I have to maintain a C# project built in VS 2005 (.NET 2.0), but when I put a breakpoint in specific line during debug, something strange happens:
I have found that Resharper could cause those kind of "problems", but its licence has been expired from more than six months.
Finally, I solved the issue uninstalling completely resharper from my laptop. Here is the reference link (for me, point 2 worked):
To completely remove ReSharper Ultimate tools from Visual Studio, please try the following:
- Run ReSharper Ultimate installer once again - do you have any products with status Repair? If so, please select Remove for them and select Skip for others.
- If there are no items with Repair action, please remove the following folder manually %LocalAppData%\Microsoft\VisualStudio{Visual Studio version}\Extensions\JetBrains
- If Visual Studio still thinks ReSharper is installed, try deleting the following Windows Registry branch HKEY_CURRENT_USER\Software\Microsoft\VisualStudio{VS version}_Config