ruby-lsp icon indicating copy to clipboard operation
ruby-lsp copied to clipboard

`How to debug the Podfile` that auto generated by cocoapods in iOS project

Open LongXiangGuo opened this issue 1 year ago • 1 comments

This feature is VS Code specific

  • [X] VS Code specific

Use case

In most cases, we need to modify the Podfile to implement different logic for iOS project, so if we could add some configurations to the vs code IDE debug the Pofile directly, it will be more effective for coding and debugging.

From the document I have tried to add this configurations, but it not work for me

    {
      "type": "ruby_lsp",
      "request": "launch",
      "name": "Podifle Debug",
      "program": "cd path/to/ios/project && pod install --verbose",
    },

Does some one know how to debug it the profile in custom iOS project? How should I configure the required environment variables?

Description

Debug the Podfile in custom iOS project.

Implementation

Can we add some configurations like below demonstrate to debug the Podfile

    {
      "type": "ruby_lsp",
      "request": "launch",
      "name": "Podfile Debug",
      "cwd": "${iOS Project Dir that contains the Pofile}"
      "program": "pod install --verbose",
      "args" : [
       ]
    },

LongXiangGuo avatar Oct 29 '23 12:10 LongXiangGuo