C
C#2w ago
heywink

Internal error in the debugger.Exception = System.DllNotFoundException

Getting this error while trying to debug notnet web application in VSCode
Message = Unable to load shared library 'vsdbg' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/vsdbg.dylib, 1): image not found
dlopen(vsdbg.dylib, 1): image not found
dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(libvsdbg.dylib, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/vsdbg, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(vsdbg, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg, 1): image not found
dlopen(libvsdbg, 1): image not found

Code = 80131524
at VsDbg.NativeEntryPoint.EnsureInitialized(String[] args)
at VsDbg.Transports.LocalTransport.<Init>b__28_0()
Message = Unable to load shared library 'vsdbg' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/vsdbg.dylib, 1): image not found
dlopen(vsdbg.dylib, 1): image not found
dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(libvsdbg.dylib, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/vsdbg, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(vsdbg, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg, 1): image not found
dlopen(libvsdbg, 1): image not found

Code = 80131524
at VsDbg.NativeEntryPoint.EnsureInitialized(String[] args)
at VsDbg.Transports.LocalTransport.<Init>b__28_0()
my info
.NET SDK:
Version: 8.0.302
Commit: ef14e02af8
Workload version: 8.0.300-manifests.f6879a9a
MSBuild version: 17.10.4+10fbfbf2e

Runtime Environment:
OS Name: Mac OS X
OS Version: 11.7
OS Platform: Darwin
RID: osx-x64
Base Path: /usr/local/share/dotnet/sdk/8.0.302/

.NET workloads installed:
There are no installed workloads to display.

Host:
Version: 8.0.6
Architecture: x64
Commit: 3b8b000a0e

.NET SDKs installed:
1.0.1 [/usr/local/share/dotnet/sdk]
8.0.204 [/usr/local/share/dotnet/sdk]
8.0.300 [/usr/local/share/dotnet/sdk]
8.0.302 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
.NET SDK:
Version: 8.0.302
Commit: ef14e02af8
Workload version: 8.0.300-manifests.f6879a9a
MSBuild version: 17.10.4+10fbfbf2e

Runtime Environment:
OS Name: Mac OS X
OS Version: 11.7
OS Platform: Darwin
RID: osx-x64
Base Path: /usr/local/share/dotnet/sdk/8.0.302/

.NET workloads installed:
There are no installed workloads to display.

Host:
Version: 8.0.6
Architecture: x64
Commit: 3b8b000a0e

.NET SDKs installed:
1.0.1 [/usr/local/share/dotnet/sdk]
8.0.204 [/usr/local/share/dotnet/sdk]
8.0.300 [/usr/local/share/dotnet/sdk]
8.0.302 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
15 Replies
333fred
333fred2w ago
Please report feedback on the C# extension. The debugger team will need to look at that
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
333fred
333fred2w ago
I don't know what the RID will report for a x64 runtime installed via rosetta, but I don't think that's relevant
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
333fred
333fred2w ago
I don't know why you find that confusing
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
333fred
333fred2w ago
x64 is always intel
heywink
heywink2w ago
i’m on Intel
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
heywink
heywink2w ago
I just uninstalled everything from brew, and I used the dotnet-core-uninstall to remove ALL my version of dotnet. I them installed NET 8.0 SDK (v8.0.302) when I debug I'm still getting the same error
Internal error in the debugger.
Exception = System.DllNotFoundException
Message = Unable to load shared library 'vsdbg' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/vsdbg.dylib, 1): image not found
dlopen(vsdbg.dylib, 1): image not found
dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(libvsdbg.dylib, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/vsdbg, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(vsdbg, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg, 1): image not found
dlopen(libvsdbg, 1): image not found
Code = 80131524
at VsDbg.NativeEntryPoint.EnsureInitialized(String[] args)
at VsDbg.Transports.LocalTransport.<Init>b__28_0()
Internal error in the debugger.
Exception = System.DllNotFoundException
Message = Unable to load shared library 'vsdbg' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/vsdbg.dylib, 1): image not found
dlopen(vsdbg.dylib, 1): image not found
dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(libvsdbg.dylib, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/vsdbg, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(vsdbg, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg.dylib (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib

dlopen(/Users/chadams/.vscode/extensions/ms-dotnettools.csharp-2.34.12-darwin-x64/.debugger/x86_64/libvsdbg, 1): image not found
dlopen(libvsdbg, 1): image not found
Code = 80131524
at VsDbg.NativeEntryPoint.EnsureInitialized(String[] args)
at VsDbg.Transports.LocalTransport.<Init>b__28_0()
chadams:FSM chadams$ dotnet --info
.NET SDK:
Version: 8.0.302
Commit: ef14e02af8
Workload version: 8.0.300-manifests.f6879a9a
MSBuild version: 17.10.4+10fbfbf2e

Runtime Environment:
OS Name: Mac OS X
OS Version: 11.7
OS Platform: Darwin
RID: osx-x64
Base Path: /usr/local/share/dotnet/sdk/8.0.302/

.NET workloads installed:
There are no installed workloads to display.

Host:
Version: 8.0.6
Architecture: x64
Commit: 3b8b000a0e

.NET SDKs installed:
8.0.302 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found
chadams:FSM chadams$ dotnet --info
.NET SDK:
Version: 8.0.302
Commit: ef14e02af8
Workload version: 8.0.300-manifests.f6879a9a
MSBuild version: 17.10.4+10fbfbf2e

Runtime Environment:
OS Name: Mac OS X
OS Version: 11.7
OS Platform: Darwin
RID: osx-x64
Base Path: /usr/local/share/dotnet/sdk/8.0.302/

.NET workloads installed:
There are no installed workloads to display.

Host:
Version: 8.0.6
Architecture: x64
Commit: 3b8b000a0e

.NET SDKs installed:
8.0.302 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
heywink
heywink2w ago
net6 is not available to download, I simply downgraded my C# and C# Dev Kit extensions in VSCode and it works again
333fred
333fred2w ago
.NET 6 is indeed available to download
333fred
333fred2w ago
Microsoft
.NET Downloads (Linux, macOS, and Windows)
Official .NET downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
333fred
333fred2w ago
However, and I can't stress this enough: macOS 11 is out of support. It last received a patch 9 months ago, and won't receive any more It is very much not a good idea to be running it
Want results from more Discord servers?
Add your server
More Posts