From 4330e1ba85a93c7646bff3e4aa5d39a8586953ad Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Wed, 19 Feb 2025 20:56:48 +0100 Subject: [PATCH] Debugging --- .vscode/launch.json | 19 +++++++++++++++++++ .vscode/settings.json | 4 ++++ .vscode/tasks.json | 19 +++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json 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