Setting up debugging plugin for CocoaPods in VSCode

Updated
Jan 28, 2022 8:09 AM
Created
Jan 28, 2022 8:08 AM
Tags
Cocoapods
Attributes

# frozen_string_literal: true

require 'bundler/setup'
require 'cocoapods'

load Gem.bin_path('cocoapods', 'pod')
local_pod.rb

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",  
  "configurations": [    
    {    
      "name": "Debug CocoaPods",
      "type": "Ruby",
      "request": "launch",
      "program": "${workspaceRoot}/local_pod.rb",
      "args": [
        "install"
      ],
      "useBundler": true
    }
  ]
}