Hi,
I get this error when trying to debug a .net core console app
~> Process RedisConsoleApplication started
~> The process failed to start with the following error: Could not load .NET Core dbgshim library at /usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.1.0/libdbgshim.dylib
Hm, yeah, that makes sense, because ASP.NET Core, in Microsoft’s infinite wisdom, doesn’t ship the debugshim, only .NET Core does. So what we do iOS when the project is set to ASP.NET Core, we use the .NET Core version. But (in case anyone is shocked) the versions for .NET Core and ASP.NET Core don’'t (always) match exactly, so we can’t pick the version of .NET Core the matches the selected ASP.NET Core version; we pick the latest.
Did I mention what a mell from hell MS is making out of .NET, with Core?
Afraid this will have to wait for my fix (or you need to uninstall 3.1, I that’s possible). sorry.
Taking one for the team, I just did that (for one, I don’t need Core for production work, so I care less if It breaks me completely; for another, this gives me a chance to improve support for using a lower version than the max installed ;), and shockingly, it works:
ah, hm, no, I misremembered the code; looks like w don’t actually check if the file’s there, tis is from LoadLibrary (and I missed the message where you said the file is there).:
if not fDict.TryGetValue(aPath, out result) then begin
var lLib := LoadLibrary(aPath);
if lLib = IntPtr.Zero then
raise new Exception($"Could not load .NET Core dbgshim library at {aPath}");
I don’t think there’s a way to get more details out of this tough… :(. I will add an extra check/message for the missing file, som we can ell tr two scenarios apart in the future.