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."
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 :)
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.
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.
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 👍
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 👍🏼
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.
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
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?
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.
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
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.
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.
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."
Thanks Isaac!
Thank you, I learnt a few things. To delete all break points, drag away the project icon in the break-point tab. 😃
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.
Glad it was helpful, Sedat!
Without a doubt debugging is the most important skill for any developer. Great video!
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 :)
Glad it helped!
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.
Glad you liked it Glenn, and that would be a good use of the sound.
I always had trouble understanding the exception break point. You cleared it up for me. Thanks a lot sean..
Happy to help!
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.
Thanks for sharing. That's a shortcut I always forget about.
Awesome Video, Sean!
Thanks! Glad you liked it 😀
What a great tutorial about Debugging and how to use breakpoints in Xcode. 👍Great job Sean!
Thanks!
LITERALLY had that exact bug today lol. Super fun figuring it out without using breakpoints :D
Bro Nice and Simple explanation 🔥
Glad it was helpful!
thanks for the clear explanation
Glad it was helpful, Herman.
Amazing tutorial man! 🙏
Glad you liked it!
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 👍
Happy to help!
CMD + A, Delete to delete all
Thanks for sharing!
Sean Allen np Sean! Would love to see a more advanced video on breakpoints showing features like conditional breakpoints!
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 👍🏼
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.
Thanks for the tips!
thanks for the video! loved the simple explanation style :)
Learned something new! Thanks Sean
Happy to help!
The indentation for = is killing me
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
Thanks for clearing that up, Robin!
Wow. This video is packed with information. I feel like it raised my IQ by 20 points.
Thank you Sean, video so helpful!
My pleasure!
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.
Glad you liked it. Feel free to suggest here, but I have a VERY long video idea list.
weird one, why can't I use breakpoint when clicking on the line?
Great tips!
I got a thread 1: signal sigterm and I have no idea what that is or how to fix it to run the app
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.
Sometimes breakpoints not working. What to do in that case
Hiii Sean,
I want the debug te code when app is killed state and notification tap
Really good 👍
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?
Fixed it by randomly messing with Xcode debugging settings...great :)
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.
This is very helpfull thanks man:)
Glad it helped
thank you
Thank you very much 😊
Happy to help
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)
Tough for me to say as I don't do any hiring for Apple 😀
simple but not easy
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
Should a beginner know these stuff? I only know what a breakpoint is and how to use it.
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.
@@seanallen Alright thanks!
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.
Amazing 🎉
Thanks 😄
Hold up wait why are your breakpoints red?
It's your system accent color. You can set it in System Preferences > General
Don't ever paginate using content size. It's a straight up anti-pattern.
google, debug and google your debug
13:23