how to debugging MediaPipe in Vscode and Xcode

223 views
Skip to first unread message

JMJ mseagle

unread,
Apr 23, 2022, 3:27:23 AM4/23/22
to MediaPipe
hi,
I am interested in this project and I tried to make something with this.
I tried to debugging in vscode and xcode using desktop version, but I can't.
install is done, and I also can build.
here is my information.

os: Mac m1(Big Sur), Mac intel core i5(monterey), windows
editor: vs code, Xcode(13.2.1)

I wonder how can I debug in vscode or Xcode.

these are my setting files.

-------------------------------------------------------------------------------------

c_cpp_properties.json

{
   "configurations":[
      {
         "name":"Mac",
         "includePath":[
            "${workspaceFolder}/**",
            "/Users/jeonminjeong/Documents/dev/mediapipe/mediapipe",
            "/Users/jeonminjeong/Documents/dev/mediapipe/mediapipe/mediapipe/framework",
            "/opt/homebrew/Cellar/opencv/4.5.5_1/include/**"
         ],
         "defines":[
           
         ],
         "macFrameworkPath":[
           
         ],
         "compilerPath":"/opt/homebrew/bin/gcc-11",
         "cStandard":"gnu17",
         "cppStandard":"gnu++17",
         "intelliSenseMode":"macos-gcc-arm64"
      }
   ],
   "version":4
}

-------------------------------------------------------------------------------------

launch.json

{
   "version":"0.2.0",
   "configurations":[
      {
         "name":"(lldb) Launch",
         "type":"cppdbg",
         "request":"launch",
         "program":"${workspaceFolder}/bazel-bin/mediapipe/examples/desktop/face_detection/face_detection_cpu",
         "args":[
            "--calculator_graph_config_file",
            "mediapipe/graphs/face_detection/face_detection_desktop_live.pbtxt"
         ],
         "stopAtEntry":false,
         "cwd":"${workspaceFolder}",
         "environment":[
           
         ],
         "externalConsole":false,
         "MIMode":"lldb",
         "preLaunchTask":"build"
      }
   ]
}

-------------------------------------------------------------------------------------

task.json

{
   "version":"2.0.0",
   "tasks":[
      {
         "label":"build",
         "type":"shell",
         "command":"bazel",
         "args":[
            "build",
            "--define",
            "MEDIAPIPE_DISABLE_GPU=1",
            "--compilation_mode=dbg",
            "--cxxopt=\"-std=c++17\"",
            "--sandbox_debug",
            "mediapipe/examples/desktop/face_detection:face_detection_cpu"
         ],
         "group":{
            "kind":"build",
            "isDefault":true
         }
      }
   ]
}


I am waiting answers. 
thank you.

sincerely,





Reply all
Reply to author
Forward
0 new messages