Skip to content

Unable to Debug in VSCode #116864

Closed
Closed
@ManickaP

Description

@ManickaP

I used to be able to debug runtime libraries in VSCode based on this https://github.com/dotnet/runtime/blob/main/docs/workflow/debugging/libraries/debugging-vscode.md

I've tried clean build, update VSCode, with OmniSharp / C# DevKit, attaching to a running process... All of them fail with this error:

12648:  binding file /home/manicka/repositories/runtime.2/artifacts/bin/testhost/net10.0-linux-Debug-x64/shared/Microsoft.NETCore.App/10.0.0/libcoreclr.so [0] to /home/manicka/repositories/runtime.2/artifacts/bin/testhost/net10.0-linux-Debug-x64/shared/Microsoft.NETCore.App/10.0.0/libcoreclr.so [0]: normal symbol `DllMain'
     12648:  symbol=PAL_RegisterModule;  lookup in file=/home/manicka/repositories/runtime.2/artifacts/bin/testhost/net10.0-linux-Debug-x64/shared/Microsoft.NETCore.App/10.0.0/libcoreclr.so [0]
     12648:  symbol=PAL_RegisterModule;  lookup in file=/usr/lib/libgcc_s.so.1 [0]
     12648:  symbol=PAL_RegisterModule;  lookup in file=/usr/lib/libstdc++.so.6 [0]
     12648:  symbol=PAL_RegisterModule;  lookup in file=/usr/lib/libm.so.6 [0]
     12648:  symbol=PAL_RegisterModule;  lookup in file=/usr/lib/libc.so.6 [0]
     12648:  symbol=PAL_RegisterModule;  lookup in file=/lib64/ld-linux-x86-64.so.2 [0]
     12648:  /home/manicka/repositories/runtime.2/artifacts/bin/testhost/net10.0-linux-Debug-x64/shared/Microsoft.NETCore.App/10.0.0/libcoreclr.so: error: symbol lookup error: undefined symbol: PAL_RegisterModule (fatal)
Unable to attach to CoreCLR. Failed to load the .NET Debugging Services. See https://aka.ms/VSCode-DotNet-LoadDebugServicesError for help troubleshooting.
The program '[12648] dotnet' has exited with code -1 (0xffffffff).

This is affecting my inner-loop, as VSCode is the only option for Linux development.

Note that I can debug other .NET 10 projects in VSCode without an issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions