remote debugging on Linux over SSH does not load modules

Peter Martens 0 Reputation points
2023-06-01T07:43:50.91+00:00

I am using Visual Studio 17.6.2 to develop a .net6 (C#) app for an ARM32-linux environment. For testing the problem below, I made a 5-line console program with a loop.

After publishing the app as 'Debug'/'Self-contained'/'linux-arm' onto a folder and copying all files (including .pdb) to the target system, it runs fine. Then I can use 'Attach to Process' to connect to the app over SSH, which seems to work. But then no call stack is visible, the Modules window is empty and breakpoints do not work. The "break-all" button also does nothing.

This has worked for me in the past (in previous versions of VS, I did not keep track?), and I cannot figure out what has changed. Does anyone know what might be happening?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,863 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,619 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,139 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 29,351 Reputation points Microsoft Vendor
    2023-06-01T11:58:19.44+00:00

    Hello @Peter Martens,

    Welcome to Microsoft Q&A forum.

    Is "Enable Just My Code" option selected in Tools > Options > Debugging > General > Enable Just My Code?

    When you attached to process, in "Attach to:" box, did you select "Automatic"? If so, please try to select specific code types and check if it works.

    If this issue only appears after updating Visual Studio 2022 to 17.6.2 without changing anything else, then please try to submit a ticket on our Developer Community and if possible, try to downgrade VS 2022 to a previous version as a temporarily workaround. If you do submit a ticket, please share us the thread link for better tracking and help.

    If you changed any other settings, please let us know.

    Feel free to contact us.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.