I'm having a problem where the debugger in Visual Studio suddenly stops a couple seconds after I start it. There are no errors or exceptions. It just stops debugging after a few seconds of starting it. I "believe" I've narrowed it down to Visual Studio not liking that the TwinCAT runtime is running on the same machine....perhaps. I only say that with a bit of uncertainty because:
When running a "test" project targeting framework .NET 9, the debugger works fine with the TwinCAT runtime running. It appears that projects targeting older frameworks (4.7.1) is where the debugger stops after starting it, but again, only if the TwinCAT runtime is running.
I've been debugging C# projects with TwinCAT running on the same machine, and have never had this problem before with older .Net frameworks. I've been doing it like this for years, with no issues. (?). In fact I just ran this C# project about 6-7 months ago on the same machine, no problems. I'm not sure if it was the same version of the TwinCAT runtime though, but I think it was.
System and software: AMD Ryzen 1950X, 128G RAM, Windows 10 Pro, Visual Studio 2022 (Community), TwinCAT 4024.55
Any insights or feedback is appreciated. Thank you!