sweetpad-dev / sweetpad

Develop Swift/iOS projects using VSCode
https://marketplace.visualstudio.com/items?itemName=sweetpad.sweetpad
MIT License
586 stars 19 forks source link

`command:sweetpad.debugger.getAppPath` is not updated #74

Open aelam opened 1 week ago

aelam commented 1 week ago

I use this to debug my app, but the command:sweetpad.debugger.getAppPath seems not to be updated because it's launched a simulator that I didn't install the app i.e. my current simulator in VSCode is iPhone 16 pro but when I tried to attach like the below it will launch iPhone 16 plus which doesn't even install my app.

but actually I have built on iPhone 16 Pro quite a few times and I don't use iPhone 16 plus at all.

Could you please help check this issue.

        {
            "type": "lldb",
            "request": "launch",
            "name": "Attach",
            "program": "${command:sweetpad.debugger.getAppPath}",
            "initCommands": [
                "command source ~/.lldbinit"
            ]
        },

Why don't I use

        {
            "type": "sweetpad-lldb",
            "request": "launch",
            "name": "Attach to iOS app (SweetPad)",
            "preLaunchTask": "sweetpad: launch",
            "codelldbAttributes": {
                "initCommands": [
                    "command source ~/.lldbinit"
                ]
            }
        },

because my project is huge that the debugger never attaches to the process that I have to attach like as my first json