Xcode Breakpoints - Basic Debugging | Swift

Sdílet
Vložit
  • čas přidán 27. 08. 2024

Komentáře • 77

  • @isaacclark9825
    @isaacclark9825 Před 4 lety +8

    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."

  • @bdaralan
    @bdaralan Před 4 lety +6

    Thank you, I learnt a few things. To delete all break points, drag away the project icon in the break-point tab. 😃

  • @iosedat
    @iosedat Před 4 lety +5

    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  Před 4 lety +1

      Glad it was helpful, Sedat!

  • @ryankanno2562
    @ryankanno2562 Před 2 lety +1

    Without a doubt debugging is the most important skill for any developer. Great video!

  • @VeryBlueBot
    @VeryBlueBot Před 4 lety +11

    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 :)

  • @glennmiller394
    @glennmiller394 Před 4 lety +3

    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  Před 4 lety

      Glad you liked it Glenn, and that would be a good use of the sound.

  • @sanjayarun4947
    @sanjayarun4947 Před 4 lety +2

    I always had trouble understanding the exception break point. You cleared it up for me. Thanks a lot sean..

  • @denisp.7850
    @denisp.7850 Před 4 lety +2

    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  Před 4 lety

      Thanks for sharing. That's a shortcut I always forget about.

  • @SwiftlyShivali
    @SwiftlyShivali Před 4 lety +6

    Awesome Video, Sean!

    • @seanallen
      @seanallen  Před 4 lety +1

      Thanks! Glad you liked it 😀

  • @CredoAcademy
    @CredoAcademy Před 4 lety +1

    What a great tutorial about Debugging and how to use breakpoints in Xcode. 👍Great job Sean!

  • @PtolemysEye
    @PtolemysEye Před 4 lety +1

    LITERALLY had that exact bug today lol. Super fun figuring it out without using breakpoints :D

  • @usamashoukat8233
    @usamashoukat8233 Před rokem +1

    Bro Nice and Simple explanation 🔥

  • @hermanvancauwelaert
    @hermanvancauwelaert Před rokem +1

    thanks for the clear explanation

  • @ca7986
    @ca7986 Před 2 lety +1

    Amazing tutorial man! 🙏

  • @Didstoraro
    @Didstoraro Před 2 lety +1

    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 👍

  • @Some.real.human.
    @Some.real.human. Před 4 lety +10

    CMD + A, Delete to delete all

    • @seanallen
      @seanallen  Před 4 lety +1

      Thanks for sharing!

    • @Some.real.human.
      @Some.real.human. Před 4 lety +1

      Sean Allen np Sean! Would love to see a more advanced video on breakpoints showing features like conditional breakpoints!

  • @ivanputeraa
    @ivanputeraa Před 4 lety +1

    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 👍🏼

  • @PatricioBenavente
    @PatricioBenavente Před 4 lety +2

    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.

  • @yosansu
    @yosansu Před 2 lety

    thanks for the video! loved the simple explanation style :)

  • @donathmm3881
    @donathmm3881 Před 4 lety +1

    Learned something new! Thanks Sean

  • @edwincreator2855
    @edwincreator2855 Před 4 lety +7

    The indentation for = is killing me

  • @robinandthedog
    @robinandthedog Před 4 lety +1

    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  Před 4 lety

      Thanks for clearing that up, Robin!

  • @bruhmoment3731
    @bruhmoment3731 Před 3 lety

    Wow. This video is packed with information. I feel like it raised my IQ by 20 points.

  • @andreagualandris2462
    @andreagualandris2462 Před 4 lety +1

    Thank you Sean, video so helpful!

  • @TylerWasick
    @TylerWasick Před 4 lety +1

    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  Před 4 lety

      Glad you liked it. Feel free to suggest here, but I have a VERY long video idea list.

  • @antonignatenko7776
    @antonignatenko7776 Před 2 měsíci

    weird one, why can't I use breakpoint when clicking on the line?

  • @JonatanEdOrtiz
    @JonatanEdOrtiz Před 2 lety

    Great tips!

  • @luismosqueda7293
    @luismosqueda7293 Před 3 lety

    I got a thread 1: signal sigterm and I have no idea what that is or how to fix it to run the app

  • @Taxexpert82
    @Taxexpert82 Před rokem

    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.

  • @hareeshgangadhara415
    @hareeshgangadhara415 Před 4 lety

    Sometimes breakpoints not working. What to do in that case

  • @AmitGupta-xc9gq
    @AmitGupta-xc9gq Před 3 lety

    Hiii Sean,
    I want the debug te code when app is killed state and notification tap

  • @govind20246
    @govind20246 Před 3 lety

    Really good 👍

  • @connorvantress8073
    @connorvantress8073 Před 3 lety

    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 Před 3 lety

      Fixed it by randomly messing with Xcode debugging settings...great :)

  • @gillesashley9314
    @gillesashley9314 Před 2 lety

    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.

  • @hardipgajera2316
    @hardipgajera2316 Před 3 lety +1

    This is very helpfull thanks man:)

  • @justmytraining4190
    @justmytraining4190 Před 19 dny

    thank you

  • @guruitcompany
    @guruitcompany Před 4 lety +1

    Thank you very much 😊

  • @tech_wizard9315
    @tech_wizard9315 Před 4 lety +1

    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  Před 4 lety +1

      Tough for me to say as I don't do any hiring for Apple 😀

    • @dannylones2159
      @dannylones2159 Před 4 lety

      simple but not easy

  • @Ivan_Maslov
    @Ivan_Maslov Před 4 lety

    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

  • @DimitrisTheo
    @DimitrisTheo Před 4 lety

    Should a beginner know these stuff? I only know what a breakpoint is and how to use it.

    • @seanallen
      @seanallen  Před 4 lety +2

      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 Před 4 lety

      @@seanallen Alright thanks!

  • @chrispy104k
    @chrispy104k Před 4 lety

    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.

  • @dan_pal
    @dan_pal Před 5 měsíci

    Amazing 🎉

  • @Fwipo
    @Fwipo Před 4 lety

    Hold up wait why are your breakpoints red?

    • @seanallen
      @seanallen  Před 4 lety

      It's your system accent color. You can set it in System Preferences > General

  • @aliquewilliams3080
    @aliquewilliams3080 Před 4 lety

    Don't ever paginate using content size. It's a straight up anti-pattern.

  • @dannylones2159
    @dannylones2159 Před 4 lety

    google, debug and google your debug

  • @sarahd6314
    @sarahd6314 Před 2 lety

    13:23