Thursday, 25 May 2023

How to attach a docker container in visual studio code? CMake debug?

  1. Install the "C++", "Dev Containers", "CMake", "CMake Tools" under marketplace
  2. After that, crtl + shift + p and search "attach"
  3. Then, you can create a root folder, ".vscode" and create a new file named as "settings.json" as below:-

{

    "cmake.debugConfig": {

      "args": [

        "arg1",

        "arg2",

        "--flag",

        "value"

      ]

    }

  }

  

    4. Finally, crtl + shift + p -> CMake Debug

No comments:

Post a Comment