Xcode Breakpoints - Basic Debugging | Swift

  Рет қаралды 36,534

Sean Allen

Sean Allen

Күн бұрын

Пікірлер: 77
@isaacclark9825
@isaacclark9825 4 жыл бұрын
Great content! I make a living answering student programmer questions. I wish I had a quarter for every time I have asked a student, "have you used the debugger" and received the response "we haven't been taught about that."
@seanallen
@seanallen 4 жыл бұрын
Thanks Isaac!
@bdaralan
@bdaralan 4 жыл бұрын
Thank you, I learnt a few things. To delete all break points, drag away the project icon in the break-point tab. 😃
@ryankanno2562
@ryankanno2562 3 жыл бұрын
Without a doubt debugging is the most important skill for any developer. Great video!
@iosedat
@iosedat 4 жыл бұрын
Hi Sean, I am following you since few days and learning iOS Development. This video is worth of Gold for me. Thanks for sharing your experiences.
@seanallen
@seanallen 4 жыл бұрын
Glad it was helpful, Sedat!
@sanjayarun4947
@sanjayarun4947 4 жыл бұрын
I always had trouble understanding the exception break point. You cleared it up for me. Thanks a lot sean..
@seanallen
@seanallen 4 жыл бұрын
Happy to help!
@glennmiller394
@glennmiller394 4 жыл бұрын
Good video, Sean. Debugging is the #1 skill software engineers need to develop to keep their sanity. The sound thingie? For long running programs. No more checking the display every three seconds.
@seanallen
@seanallen 4 жыл бұрын
Glad you liked it Glenn, and that would be a good use of the sound.
@denisp.7850
@denisp.7850 4 жыл бұрын
Informative as usual 👍 A quick tip that i've been using a lot: using control+command for jumping to definition. Makes it so much faster to navigate through code.
@seanallen
@seanallen 4 жыл бұрын
Thanks for sharing. That's a shortcut I always forget about.
@VeryBlueBot
@VeryBlueBot 4 жыл бұрын
Oh man this is so clear and helpful. Basically everything I needed to know about break points in xcode in 20 minutes (10 actually, I watch in X2 :)) Most of my code milage is in JS so Im not using breaking points enough.. Thanks :)
@seanallen
@seanallen 4 жыл бұрын
Glad it helped!
@ivanputeraa
@ivanputeraa 4 жыл бұрын
I usually use the breakpoint sound feature whenever I do debugging and left my laptop while running the code. I use Bluetooth headset btw, so whenever I hear the sound I’ve set before, it means that the code has triggered the breakpoint so I can go back to check my laptop. Maybe it looks kinda funny, but it’s really useful for me though 👍🏼
@PtolemysEye
@PtolemysEye 4 жыл бұрын
LITERALLY had that exact bug today lol. Super fun figuring it out without using breakpoints :D
@CredoAcademy
@CredoAcademy 4 жыл бұрын
What a great tutorial about Debugging and how to use breakpoints in Xcode. 👍Great job Sean!
@seanallen
@seanallen 4 жыл бұрын
Thanks!
@SwiftlyShivali
@SwiftlyShivali 4 жыл бұрын
Awesome Video, Sean!
@seanallen
@seanallen 4 жыл бұрын
Thanks! Glad you liked it 😀
@Didstoraro
@Didstoraro 3 жыл бұрын
Thank you so much for this video, Sean. 🙂 It has helped me a lot, I'm learning iOS right now and I find myself often overwhelmed with so many new things. So... Thanks 👍
@seanallen
@seanallen 3 жыл бұрын
Happy to help!
@TylerWasick
@TylerWasick 4 жыл бұрын
Thanks Sean for another great video! How can I make suggestions on new videos? I am trying to learn more advanced cases of protocols and delegates.
@seanallen
@seanallen 4 жыл бұрын
Glad you liked it. Feel free to suggest here, but I have a VERY long video idea list.
@bruhmoment3731
@bruhmoment3731 4 жыл бұрын
Wow. This video is packed with information. I feel like it raised my IQ by 20 points.
@usamashoukat8233
@usamashoukat8233 2 жыл бұрын
Bro Nice and Simple explanation 🔥
@seanallen
@seanallen 2 жыл бұрын
Glad it was helpful!
@yosansu
@yosansu 2 жыл бұрын
thanks for the video! loved the simple explanation style :)
@Some.real.human.
@Some.real.human. 4 жыл бұрын
CMD + A, Delete to delete all
@seanallen
@seanallen 4 жыл бұрын
Thanks for sharing!
@Some.real.human.
@Some.real.human. 4 жыл бұрын
Sean Allen np Sean! Would love to see a more advanced video on breakpoints showing features like conditional breakpoints!
@ca7986
@ca7986 2 жыл бұрын
Amazing tutorial man! 🙏
@seanallen
@seanallen 2 жыл бұрын
Glad you liked it!
@robinandthedog
@robinandthedog 4 жыл бұрын
Note that po means evaluate expression, see : help po. The nice thing is you can change variables with it to run a different course in your program e.g.: po isMyAppCool = true
@seanallen
@seanallen 4 жыл бұрын
Thanks for clearing that up, Robin!
@connorvantress8073
@connorvantress8073 3 жыл бұрын
the code on his screen at 1:52 is the only thing that pops up on my screen when I try and de-bug. I cannot see my actual code or the green line that shows where it is at and running. How do I fix this?
@connorvantress8073
@connorvantress8073 3 жыл бұрын
Fixed it by randomly messing with Xcode debugging settings...great :)
@gillesashley9314
@gillesashley9314 2 жыл бұрын
Sean you leave a lot of spaces before assigning your values, won’t it affect performance. Sorry to ask but coming from a JavaScript background where we minify files to improve speed.
@Ivan_Maslov
@Ivan_Maslov 4 жыл бұрын
Hello! Could you make a video on View debugging? By the way, why did you write arg1? Is that a specific variable or you could write arg with any number, like arg0, for example? Thanks
@PatricioBenavente
@PatricioBenavente 4 жыл бұрын
Didn’t know the click and drag to delete breackpoints. Nice tip For showing all your breackpoints you can use Command-8 You don’t hace to enter a function and add new breackpoints. Once your program is paused you can use the step-into button (with control-shift) in the debugger. Great work as usual Sean.
@seanallen
@seanallen 4 жыл бұрын
Thanks for the tips!
@Taxexpert82
@Taxexpert82 2 жыл бұрын
O.M.G I am trying to update my app in the apple developers, but I can't, any video you can recommend to me.
@donathmm3881
@donathmm3881 4 жыл бұрын
Learned something new! Thanks Sean
@seanallen
@seanallen 4 жыл бұрын
Happy to help!
@chrispy104k
@chrispy104k 4 жыл бұрын
Hey Sean, with regard to your query about the Console showing that annoying message: Snapshotting a view (0x7ff9aae0cad0, _UIReplicantView) that has not been rendered at least once requires afterScreenUpdates:YES. I discovered through looking through all the options to configure the textField in the file GFTextField that by adding the line: autocapitalizationType = .none in the configure() function the message stopped. I've no idea what is going on there but clearly that had something to do with it. I did the same for the searchController. ie, in configureSearchController() searchController.searchBar.autocapitalizationType = .none Problem solved.
@hermanvancauwelaert
@hermanvancauwelaert Жыл бұрын
thanks for the clear explanation
@seanallen
@seanallen Жыл бұрын
Glad it was helpful, Herman.
@AmitGupta-xc9gq
@AmitGupta-xc9gq 3 жыл бұрын
Hiii Sean, I want the debug te code when app is killed state and notification tap
@luismosqueda7293
@luismosqueda7293 3 жыл бұрын
I got a thread 1: signal sigterm and I have no idea what that is or how to fix it to run the app
@andreagualandris2462
@andreagualandris2462 4 жыл бұрын
Thank you Sean, video so helpful!
@seanallen
@seanallen 4 жыл бұрын
My pleasure!
@hareeshgangadhara415
@hareeshgangadhara415 4 жыл бұрын
Sometimes breakpoints not working. What to do in that case
@antonignatenko7776
@antonignatenko7776 6 ай бұрын
weird one, why can't I use breakpoint when clicking on the line?
@tech_wizard9315
@tech_wizard9315 4 жыл бұрын
If I practice DSA with Swift for 3 months.... 6 hrs each day... M I ready to get job at Apple..? (I am a fresher)
@seanallen
@seanallen 4 жыл бұрын
Tough for me to say as I don't do any hiring for Apple 😀
@dannylones2159
@dannylones2159 4 жыл бұрын
simple but not easy
@hardipgajera2316
@hardipgajera2316 4 жыл бұрын
This is very helpfull thanks man:)
@seanallen
@seanallen 4 жыл бұрын
Glad it helped
@JonatanEdOrtiz
@JonatanEdOrtiz 3 жыл бұрын
Great tips!
@edwincreator2855
@edwincreator2855 4 жыл бұрын
The indentation for = is killing me
@DimitrisTheo
@DimitrisTheo 4 жыл бұрын
Should a beginner know these stuff? I only know what a breakpoint is and how to use it.
@seanallen
@seanallen 4 жыл бұрын
I'd say you'd need to have a good idea of basic breakpoints and debugging before you get your first job. Knowing how to debug can save you tons of time when just learning as well.
@DimitrisTheo
@DimitrisTheo 4 жыл бұрын
@@seanallen Alright thanks!
@govind20246
@govind20246 3 жыл бұрын
Really good 👍
@guruitcompany
@guruitcompany 4 жыл бұрын
Thank you very much 😊
@seanallen
@seanallen 4 жыл бұрын
Happy to help
@Fwipo
@Fwipo 4 жыл бұрын
Hold up wait why are your breakpoints red?
@seanallen
@seanallen 4 жыл бұрын
It's your system accent color. You can set it in System Preferences > General
@aliquewilliams3080
@aliquewilliams3080 4 жыл бұрын
Don't ever paginate using content size. It's a straight up anti-pattern.
@sarahd6314
@sarahd6314 2 жыл бұрын
13:23
@dan_pal
@dan_pal 9 ай бұрын
Amazing 🎉
@seanallen
@seanallen 9 ай бұрын
Thanks 😄
@justmytraining4190
@justmytraining4190 5 ай бұрын
thank you
@dannylones2159
@dannylones2159 4 жыл бұрын
google, debug and google your debug
Improve Debugging Skills | iOS | Swift/Obj C | Xcode
26:02
Swift - Result Type - Cleaner Network Calls
12:07
Sean Allen
Рет қаралды 20 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН
How to code in Swift | Swift Basics #1
18:25
Swiftful Thinking
Рет қаралды 69 М.
SwiftData Basics in 15 minutes
15:18
CodeWithChris
Рет қаралды 54 М.
Debugging in Xcode 13: Tips & Tricks (2022) - iOS
14:02
iOS Academy
Рет қаралды 45 М.
How To Code in A Large Codebase
15:37
PedroTech
Рет қаралды 9 М.
Swift - Convenience Initializers
8:41
Sean Allen
Рет қаралды 18 М.
24 Xcode Tips in 15 Minutes
15:30
Paul Hudson
Рет қаралды 74 М.
Swift For Beginners - Class & Inheritance Explained
15:42
Sean Allen
Рет қаралды 16 М.
Swift Closures Explained
14:23
Sean Allen
Рет қаралды 69 М.
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 188 М.