how to develop wsl on windows

alice alice 80 Reputation points
2024-12-26T09:19:25.41+00:00

I use visual studio 2022.

I already install WSL. and it show the message.

I don't know what is the informaion.

I only have one PC.

Screenshot of the Visual Studio Connect to Remote System dialog.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,311 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,956 Reputation points Microsoft Vendor
    2024-12-26T13:12:18.3033333+00:00

    Hi @alice alice ,

    It’s about debugging a Docker container process remotely. Kindly see this document: Attach to a process running on a Linux Docker container.

    On step3, the document says:

    To debug a Docker container process remotely:

    You can connect to a running process in a Docker container using one of two options. The first option, to use SSH, is ideal if you don’t have Docker tools installed on your local machine. If you do have Docker tools installed locally and you have a Docker daemon that’s configured to accept remote requests, try the second option, using a Docker daemon.

    The document also introduces how to debug a Docker container process locally:

    To debug a Docker container process locally:

    a. Set Docker CLI host to Local Machine.

    b. Select a running container to attach to from the list and hit OK.

    You can follow above steps and debug locally.

    Best Regards,

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.