vs code debugger using the docker

reason

  • vs codeIs produced by Microsoft code editor, it is very powerful.
  • Use dockerbuild programming environment, people can work to ensure the consistency of the programming environment, easy migration.
  • In vs codeuse, dockerthe debugger is very convenient.

    installation

  • vs code
  • docker
  • vs code docker plug
    After installation, startup docker, the vs codecan the dockermanagement and image container.

    Connections container

    vs codeIt comes with many dockerprogramming environments. Press the F1select Remote-Containers: Open Folder in Container...command, open the folder, and then select the
    vs codeprogramming environment provides.
    If this is the first time you run the programming environment, you will first make docker mirror, and some will be a bit time-consuming.
    Once created, the folder will open in the container, a local debugger and debug exactly the same as in the container.
    There are other commands such as an existing folder connected to the container, not described herein, see Remote Container .

Guess you like

Origin www.cnblogs.com/luoheng23/p/11607034.html