Debugging in Xcode 13: Tips & Tricks (2022) - iOS

  Рет қаралды 45,808

iOS Academy

iOS Academy

Күн бұрын

Пікірлер: 64
@IamJewz
@IamJewz 2 жыл бұрын
The expression tip for runtime injection is really useful in large code bases, a real hidden gem 💎
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks!
@driosman
@driosman 2 жыл бұрын
Great content as usual, can't believe that watching this video helped me debug a weird bug(I did not even know where to start before), thanks so much for producing great content, that'd normally be expensive to access
@iOSAcademy
@iOSAcademy Жыл бұрын
Glad it helped!
@asifnazir5832
@asifnazir5832 2 жыл бұрын
Injecting code on runtime is gonna save lot of time, really helpful techniques. Thanks.
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks
@ramazanabdullayev1969
@ramazanabdullayev1969 2 жыл бұрын
Printing View Hierarchy is very helpful technique in a large projects. Thanks man!
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Youre welcome
@fermatslasttheorem6298
@fermatslasttheorem6298 2 жыл бұрын
You can also do "expression -l objc -O -- [`self.view` recursiveDescription]" if you've hit a breakpoint inside a UIViewController. The "`self.view`" is Swift code, the rest is Objective-C format. Idk why KZbin is adding a strikethrough format but it's dash l and dash O.
@AmitBiswastunebox
@AmitBiswastunebox 2 жыл бұрын
Wow Finally you did it Afraz. Thanks a lot brother. You are generous and genuine. Looking forward to learn a tons of iOS stuffs from you. Again Thanks a lot and means a lot as I was requesting you couple of times.
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Youre very welcome! Always try to do my best
@AmitBiswastunebox
@AmitBiswastunebox 2 жыл бұрын
@@iOSAcademy You are doing phenomenal and Your iOS Academy will be the best learning resources on iOS Programing. Even I always shared this channel with my friends and co-workers. Keep reaching the Star ! Respect and Love from New York.
@Денис-ж3ф5р
@Денис-ж3ф5р 2 жыл бұрын
This is a great refresher. 👍🏻
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks
@iosinpractice
@iosinpractice 2 жыл бұрын
Thank you ​@iOS Academy, your lessons help me to become iOS developer and finally get hired
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Congrats! Huge props to you and your hard work
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
These are awesome 🔥
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks!
@mustafahamza6489
@mustafahamza6489 2 жыл бұрын
Really helpful debugging tips. Thank you for making this video!
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Youre welcome
@saurabhbhambry
@saurabhbhambry 2 жыл бұрын
Great video! Hands down one of the best video I've seen on LLDB (believe me I've searched near & far :) ). Hopefully, you can make another more detailed follow-up video for advanced debugging too - with specific focus on detecting/debugging constraint issues.
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks
@fermatslasttheorem6298
@fermatslasttheorem6298 2 жыл бұрын
If you want very in-depth and more descriptive information that you didn't even know exist, I recommend watching the Apple WWDC debugging videos, especially since 2018 it's still relevant.
@KimbrellBrad
@KimbrellBrad 2 жыл бұрын
Learned several things that I was not aware were available. Great start and ready to see your future debugging videos! Some topics I would like are setting breakpoints based on values and how to trace down some of these "Failed to log metrics" errors in SwiftUI. Thanks for the video!
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks
@dream_emulator
@dream_emulator 2 жыл бұрын
Thanks so much for this content 🙏 Really helps me out
@bachukibitsadze526
@bachukibitsadze526 2 жыл бұрын
Those are really helpful tips 💪🏻
@shurale85
@shurale85 Жыл бұрын
Thanks man! I found it really usefull.
@luntumavukuza4311
@luntumavukuza4311 2 жыл бұрын
I have learned something, thank you
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Youre welcome
@timotiusleonardo1966
@timotiusleonardo1966 2 жыл бұрын
It really surprise me when i watch the injecting expression through breakpoint scene. I wish i know that a little bit sooner hehehe, Thanks Afraz!
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Youre welcome
@captainmichaelj2321
@captainmichaelj2321 2 жыл бұрын
Always love your video, I have to mention that your code and tutorials are basis of my first iOS app that I am still working on. Would also appreciate it if you can share more insights about different architectures, specifically, I heard about TCA, while I developed my app in MVVM (UIKit + SwiftUI + Combine). Some people mention that SwiftUI should not be using MVVM.
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Youre welcome!
@MarkizBoneco
@MarkizBoneco Жыл бұрын
very useful video. Thank you!
@iOSAcademy
@iOSAcademy Жыл бұрын
Youre welcome
@tejaspatelia8179
@tejaspatelia8179 Жыл бұрын
Conditional break point is another great debugging feature
@iOSAcademy
@iOSAcademy Жыл бұрын
Yes!
@dream_emulator
@dream_emulator 2 жыл бұрын
What is a frame in the debugging context?
@vitys1000
@vitys1000 2 жыл бұрын
When I type expr -l objc -O --[UIViewController _printHierarchy], console - error: :1:2: use of undeclared identifier 'l' (My app write on swift UI). Hpw I can resolve that?
@frijevc
@frijevc Жыл бұрын
When I throw swift error in expression nothing happens, but it works without lldb error.
@Stricken174
@Stricken174 10 ай бұрын
just awesome!
@ammarmujib
@ammarmujib 2 жыл бұрын
runtime injection can be really useful as well as symbolic breakpoint. Can we use symbolic breakpoint for variables? If not then whats the alternative for watch var in Xcode and how to use it.?
@jorgeivesmurilloparedes1906
@jorgeivesmurilloparedes1906 2 жыл бұрын
Hello ,I paid the subscription to get the source code but I can not fin it, can you help me
@ilyablinov4979
@ilyablinov4979 2 жыл бұрын
Thanks a lot:)
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Youre welcome
@ndetetv666
@ndetetv666 2 жыл бұрын
thank you so much
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Youre welcome
@AmitBiswastunebox
@AmitBiswastunebox 2 жыл бұрын
Hi Brother, Hope you are doing well. I have a request. I recently tried to learn about iOS login Authentication and how it works while you have a sign in option in your app and under the hood how to pass the token, where to store and how the mechanism works. I encountered this questions a lot overtime. When you get chance, please create a tutorial on top of it please please. Thanks a lot.
@greasowang6144
@greasowang6144 2 жыл бұрын
😃Tks
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Youre welcome
@tokero5199
@tokero5199 2 жыл бұрын
Great video. To avoid typing in long commands in lldb it's pretty simple to create an alias in .lldbinit. Looking into FB's chisel is also worth it it has a lot of useful stuff, ie. the print hierarchy is simply "pvc"
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks
@victorriurean
@victorriurean 2 жыл бұрын
🔥🔥🔥
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks
@asigivati1382
@asigivati1382 Жыл бұрын
thanks for this useful video! it's only me thinking that Xcode's debugger is the worst thing ever? all the time when i'm trying to debug something he doesn't know what i want from him or what to do. i always get errors like: error: expression failed to parse: error: Couldn't realize type of self. or error: expression failed to parse: error: :2:11: error: cannot find type '$__lldb_context' in scope extension $__lldb_context { ^~~~~~~~~~~~~~~ even for the simplest code, it doesn't understand what I want from it and it's very frustrating. i can't believe the apple have such a bad product.
@Денис-ж3ф5р
@Денис-ж3ф5р 2 жыл бұрын
3:50 my designers are evil 🤣
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Lol
@RobertShresthawolf
@RobertShresthawolf 2 жыл бұрын
🤯🤯🤯🤯🤯
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Lol thanks
@jaylensmith6308
@jaylensmith6308 2 жыл бұрын
(lldb) aka Thanos snapped his fingers
@michaelnajera7958
@michaelnajera7958 2 жыл бұрын
What is your accent?
@iOSAcademy
@iOSAcademy 2 жыл бұрын
I dont think I have one?
@casadogaspar
@casadogaspar 2 жыл бұрын
@@iOSAcademy Probably from USA, as they think they don't have an accent 🤣
Xcode Breakpoints - Basic Debugging | Swift
21:53
Sean Allen
Рет қаралды 36 М.
Improve Debugging Skills | iOS | Swift/Obj C | Xcode
26:02
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Memory Leaks in iOS: Find, Diagnose, & Fix (2022)
12:44
iOS Academy
Рет қаралды 53 М.
"يعني إيه GitHub وإزاي يسهل حياتك كمبرمج؟"
10:58
اتعلم ببساطة
Рет қаралды 107 М.
Debugging (Swift 4)
16:41
SwiftBook
Рет қаралды 6 М.
31 Xcode Tips & Tricks - 2023
17:45
Sean Allen
Рет қаралды 42 М.
24 Xcode Tips in 15 Minutes
15:30
Paul Hudson
Рет қаралды 74 М.
Apple Debugging L9 - Instruments Time Profiler
26:54
AppleProgramming
Рет қаралды 17 М.
I Made an iOS App in MINUTES with This AI Tool!
13:20
Creator Magic
Рет қаралды 586 М.
reverse engineering candy-crush-saga on ios using lldb and hopper
13:41
Alexandr Sarandi
Рет қаралды 249 М.
NSCache: Performant iOS App Basics (2022)
14:11
iOS Academy
Рет қаралды 14 М.
Apple Debugging L1 - Print Statements
13:22
AppleProgramming
Рет қаралды 6 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН