diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..8583c249b2 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,19 @@ +{ + // 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": [ + { + "type": "sweetpad-lldb", + "request": "attach", + "name": "Attach to running app (SweetPad)", + "preLaunchTask": "sweetpad: launch", + "codelldbAttributes": { + "initCommands": [ + "command source ~/.lldbinit-Xcode" + ] + } + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..6bd8949ecd --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "sweetpad.build.xcodeWorkspacePath": "Telegram/Telegram.xcodeproj/project.xcworkspace", + "lldb.library": "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB" +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000000..10ef03fea7 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,19 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "sweetpad", + "action": "launch", + "problemMatcher": [ + "$sweetpad-watch", // ! Required for debugging + "$sweetpad-xcodebuild-default", + "$sweetpad-xcbeautify-errors", + "$sweetpad-xcbeautify-warnings" + ], + "label": "sweetpad: launch", + "detail": "Build and Launch the app", + "isBackground": true // ! Required for debugging + } + ] + } + \ No newline at end of file