Introduction to debugging in C++ (for beginners)

Поделиться
HTML-код
  • Опубликовано: 3 июл 2024
  • 📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
    C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
    Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
    🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
    Experience the power of practical learning, gain career-ready skills, and start building real applications!
    This is a step-by-step course designed to take you from beginner to expert in no time!
    💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
    Use it quickly, because it will be available for a limited time.
    Download Visual Assist here: bit.ly/WT-CB
    I use it to enhance the performance, features, and support for C, C#, and C++ development in Visual Studio.
    Download Ultra Edit here: bit.ly/UE-CB
    It is a powerful, secure text editor designed specifically for programmers.
    👉 Download C++Builder here : bit.ly/CppBuilderFree
    ☕ If you've found my content helpful and would like to support me, you now have the option to buy me a coffee or a cookie! It's a small gesture of gratitude that means a lot to me and helps me keep creating free educational videos for you. Use the link to make a contribution: bit.ly/CodeBeauty_BuyMeACoffee
    However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇
    This video is an introduction to debugging C++ code.
    Debugging is the process of discovering and removing computer errors (bugs) from your code. In the video, you can find beginner-friendly explanations and examples on how to debug code.
    Related courses:
    C++ UI Applications playlist: bit.ly/cpp_ui_apps
    Contents:
    00:00 - What is debugging? (fun fact about bugs)
    01:59 - Let's create the app that we'll debug
    04:39 - How to debug code
    11:26 - Debugging inside functions
    Follow me on other platforms:
    Instagram 📸 - / truecodebeauty
    Twitter 🐦- / truecodebeauty
  • НаукаНаука

Комментарии • 69

  • @CodeBeauty
    @CodeBeauty  2 года назад +21

    📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
    C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
    Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
    🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
    Experience the power of practical learning, gain career-ready skills, and start building real applications!
    This is a step-by-step course designed to take you from beginner to expert in no time!
    💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
    Use it quickly, because it will be available for a limited time.

    • @mohamedbouhadi2596
      @mohamedbouhadi2596 2 года назад

      It doesn't work

    • @CodeBeauty
      @CodeBeauty  2 года назад

      It works on my machine 😁😅
      Why, what is the problem?

    • @mohamedbouhadi2596
      @mohamedbouhadi2596 2 года назад

      @@CodeBeauty I don't know 😕 I tried to download But it failed 😔

    • @CodeBeauty
      @CodeBeauty  2 года назад

      Here are a few tips that might help ☺️ www.makeuseof.com/ways-to-fix-download-failed-network-error-chrome/

    • @mohamedbouhadi2596
      @mohamedbouhadi2596 2 года назад +1

      @@CodeBeauty Thank you so much 💓💖

  • @elle.3792
    @elle.3792 2 года назад +23

    You really are an angel, everything i've been needing help on, you have a video on

  • @raphaelmascolo18
    @raphaelmascolo18 2 года назад +14

    I started your videos 10 days ago, I just have 4 videos left apart from this new premiere. I will need to find new sources tomorrow... So glad to have found your classes. Merci beaucoup pour ton travail.

  • @abc12-
    @abc12- 2 года назад +13

    Intelligence with beauty❤️

  • @elmass3662
    @elmass3662 2 года назад +13

    been waiting for this video for some time now. now i can finish my assignments on time.

  • @anonymoususer7663
    @anonymoususer7663 2 года назад +12

    Omg THANK YOU for this video!!!! I'm looking forward to it 👍😁

  • @CPP_malloc
    @CPP_malloc 2 года назад +21

    Well organized and well prepared video which are one the most unique features of your videos.
    Some people are highly experienced but can't explain, but you... you have both.

    • @CodeBeauty
      @CodeBeauty  2 года назад +5

      Thank you, it's amazing to know that my videos are helping! 🥰🥰

    • @stormbreaker9913
      @stormbreaker9913 2 года назад

      Sahi hai bhai

  • @anonymoususer7663
    @anonymoususer7663 2 года назад +7

    Great video! I learned a lot about debugging. Thank you!

  • @sattorjabborov2728
    @sattorjabborov2728 2 года назад +1

    I didn't have any idea about how to programming until I started watching your videos. THANK YOU!

  • @jonybtw
    @jonybtw 2 года назад +2

    your channel is a hidden gem.

  • @ArielBaloy
    @ArielBaloy 2 года назад +4

    You are the best! Thank you very much

  • @mohamedbouhadi2596
    @mohamedbouhadi2596 2 года назад +1

    I swear you're the best💙

  • @moularaoul643
    @moularaoul643 2 года назад +3

    Thank you so much!!!

  • @erawanthewise8227
    @erawanthewise8227 2 года назад +2

    Great video, you deserve a sub!

  • @adelinmocanu2382
    @adelinmocanu2382 2 года назад +1

    Like it! Also, in the beginning you said something very true, debugging is one of the most important things for a programmer :D

  • @babygirlhabibi5962
    @babygirlhabibi5962 2 года назад

    You are so good . Thanks for all those Videos.
    Please do a Video About Socket Programming in C++.
    Thank you !

  • @anschoudhary1376
    @anschoudhary1376 2 года назад

    thankyou so much

  • @StarChild.no1
    @StarChild.no1 2 года назад +3

    Hi Saldina, will Design Patterns such as Factory, Abstract Factory, ever be a part of your lessons?

  • @edgarg488
    @edgarg488 2 года назад +1

    Thank you Saldina! awesome as always. wanted to ask you about tech stacks for C++ - I am a student and wanted to know what technologies would you recommend to learn along with C++. Thank you in advance.

  • @DarkLegends2008
    @DarkLegends2008 2 года назад +1

    Muito bom Saldina! Obrigado pelo vídeo. Vi no seu linkedin que você entende português então resolvi te mandar mensagem em minha língua nativa.
    Erick do Brasil.

  • @shakeebahmed7246
    @shakeebahmed7246 2 года назад +3

    Hi saldina, I need videos related to unit testing using visual studio (gtest)

  • @Surya-wz4go
    @Surya-wz4go 2 года назад +1

    Plz make the videos of all dsa concepts with c++. thank you.

  • @j.franciscox3318
    @j.franciscox3318 2 года назад

    What do you think about C++ styles? Do you like Allman or just use default VS formatting?

  • @ChrisVideosGreek
    @ChrisVideosGreek 2 года назад +1

    Hey Saldina, nice video!
    Also l heard you got promoted to ads, nice job!

  • @pepax3
    @pepax3 2 года назад +1

    dobar video

  • @sharwankumar-ci3hd
    @sharwankumar-ci3hd 2 года назад

    Could you please make video on design pattern ( factory, abstract factory..) and on UML diagrams?
    Thanks

  • @davorradic8349
    @davorradic8349 2 года назад

    Perfect videos, suggestion for the next videos could be CRUD with sqlite or some opensource database

    • @davorradic8349
      @davorradic8349 2 года назад

      I just want to buy you a coffee, but paypal is blocking with this message:
      You do not have permission to access or perform operations on this resource.

  • @mazenas3443
    @mazenas3443 2 года назад

    can u enter to operating system programming ?

  • @saifmos6516
    @saifmos6516 2 года назад

    i understand everything but i need to try this on code blocks because we use it at the university, what actually confused me now is the usage of references , they look the same like pointers, could you please do a video to explain to us what can we do with c++ in general, i really love the language but i would like to develop desktop applications and mobile apps, do i need c++ for that ? i wish if you could do also sql course , you speak clearly and make sure to give many simple examples, i watched many people explain c++ but so far i saw, you are the best, thank you !

    • @jdkingsley6543
      @jdkingsley6543 2 года назад

      No you don't need C++ for desktop or mobile apps but this also depends on what youre trying to build and on what platform. You have everything from Java to Python, and C++ is just one of those options. As for references they are baiscally aliases for a location in memory. i.e int A = 1, and if i want to reference the variable I could say int& b = a, the difference between a reference and a pointer is memory access from what I understand, while they technially behave the same way. There is a lot of confusing information online and it seems no one can just simplify the information so I understand your struggle.

  • @moatazcraft1310
    @moatazcraft1310 2 года назад

    Can you please please make C# courses, your videos are easy to understand but no C#

  • @HOWTO-sf6sy
    @HOWTO-sf6sy 2 года назад

    Mam please complete dsa series

  • @CryptoZombie666
    @CryptoZombie666 2 года назад

    Can we debug in VS code ?

  • @kidbuu6796
    @kidbuu6796 2 года назад +5

    Hi Saldina can you say if C++ is a good beginner language and if learning it is like killing 2 birds with one stone that is will let you learn C and in addition to OOP? I ask this because my university course wants us to learn C, MATLAB and Python but no mention of C++

    • @techademy9354
      @techademy9354 2 года назад +1

      If you allow me to answer, C++ is not a good first language, why? C++ and C are mid-level languages, unlike python, java, and other high level languages. C and C++ are mid level because they are closer to the machine binary language than those high level languages, but not as close to the machine language as assembly language. C and C++ allow more flexibility with memory allocation (and it's dangerous for beginners as it can cause memory leak) while other languages will handle memory automatically and remove unused memory (garbage collection). I'd say just go with Python as your first language, it's way easier. And yes, C and C++ are quite similar since C++ is an extension of the already existing C language, but C doesn't support OOP.

    • @kidbuu6796
      @kidbuu6796 2 года назад

      @@techademy9354 ooh ok thanks my course does require me to learn C tho it's for network hacking programming. My end goal tho is to become a freelance developer and work from home, in that sense would you still recommend that C++ not being a necessity?

    • @techademy9354
      @techademy9354 2 года назад

      @@kidbuu6796 If you think you can learn C++ and the languages required by your university at the same time, just go for it. It's all about time, as long as learning C++ doesn't interfere your classes then just go, its very similar to C anyways.
      One more thing, all programming languages have the same concept and the most important aspect to learning programming are "Logical Thinking and Problem Solving". Once you master one language, you can transfer that knowledge to other languages, just need to relearn the syntax.

    • @kidbuu6796
      @kidbuu6796 2 года назад

      @@techademy9354 Hi so I was recommended to use the book Programming Practice and Principles by Bjarne, I was told it is a book that also teaches algorithmic thinking.
      Thus far C++ appears to be fine for me I am liking the language a lot and I hear you also get the convenience of learning OOP in the process.
      Because I live on a remote Island with very few programming jobs and I even want to move next door in a even more remote Island "Tobago" and acquire a piece of land or a small house near the ocean which is my dream, it is imperative that I make myself as marketable and competitive as possible which is the major reason I decided to go with C++ and do it the long and hard way.
      I will follow your advice and make sure it does not interfere with my school curriculum, since due to covid the schools are closed off and I am even out of work I currently have about 2 years free personal time to do what I want until I start back to work and acquire funds to complete my final year BSc. So that is why I decided to go with C++ and take my time and learn to program the proper way, presently I am doing the full course on www.learncpp.com

    • @kidbuu6796
      @kidbuu6796 2 года назад

      @@techademy9354 Ok thank you for all your help, much appreciated :)

  • @sellimenes
    @sellimenes 2 года назад

    Thank you for all the informational content. May I ask, why are you using RAD Studio and not Visual Studio or something else? What is the benefit of using it?
    I am using RAD Studio in my university education, but I just can not like this IDE. There is no option to auto-complete or suggesting. I just got used to seeing everything like suggests in Visual Studio. Can you please help me to like the RAD Studio a bit more? :) That's affecting my motivation to learn C++ either.

  • @Movieclip__Shb
    @Movieclip__Shb 2 года назад

    Mam , please make C++ GUI full projects

  • @AshrafulAlam-td4nh
    @AshrafulAlam-td4nh 2 года назад

    I want competitive programming video..please..

  • @d_113d
    @d_113d 2 года назад +1

    ❤️❤️❤️

  • @vishwa2602
    @vishwa2602 2 года назад +4

  • @arijitbanerjee6442
    @arijitbanerjee6442 2 года назад

    Hi Saldina, It's a wonderful experience to watch your videos and learn from you. Can you plz help me why int&age (no space between the type and variable name) is not flagged as an error by the compiler(line 16 of your code). This int*ptr; also is treated as a valid statement, but this is not(as obvious) intx; plz reply. Thanks and regards.

    • @sawyermade5469
      @sawyermade5469 2 года назад

      It's basic compiler reasons. Compilers build ASTs which are based off regular expressions. These regex look for key words/chars and parse them from there. intx is not a key word/char but int and * are and since white space doesn't matter for parsing keywords, you can jam them all together and the compiler will still parse it, though it's considered bad form/readability. I think it looks sloppy but beauty is in the eye of the beholder...

    • @sawyermade5469
      @sawyermade5469 2 года назад

      Well, I meant to say some can be jammed together, obviously not all can be jammed together. But certain keywords mixed with certain operator characters, like * , + - () {} etc

  • @lucasgasparino6141
    @lucasgasparino6141 2 года назад

    A good tip: create unity tests as you finish functions or similar things, especially as the code grows. It makes you rethink what you've done, and help when you later want to make a modification without breaking the flow of the original code. Thing on UTs as sanity checks :D

  • @biblioteca.antarctica
    @biblioteca.antarctica 2 года назад

    i love u

  • @Fyzykcy
    @Fyzykcy 2 года назад +2

    C++ builder is too expensive IDE. It should be free for students who has edu mail.

  • @Bandit-is8zi
    @Bandit-is8zi 2 месяца назад

    Run or debug😂😂😂😂

  • @pronmaster09
    @pronmaster09 2 года назад

    would love to see more of that toned belly wow!

  • @mizel_1121
    @mizel_1121 2 года назад

    Yeah fuc k that c++ language
    I don’t use debugging at all I use c++ with vim and arch Linux
    I have question why u don’t use system call function it’s fast then language function like open, read etc..
    and one important question
    How to understand the thread in c++
    And give me kiss here 😚

  • @benjaminsurname5584
    @benjaminsurname5584 2 года назад

    The grace hopper story is just a myth. The term 'bug' has been around for hundreds of years referring to machinery older than computers, so the term carried over.

    • @hbm293
      @hbm293 2 года назад +1

      Any references?

    • @benjaminsurname5584
      @benjaminsurname5584 2 года назад +2

      @@hbm293 "It has been just so in all of my inventions. The first step is an intuition, and comes with a burst, then difficulties arise -- this thing gives out and [it is] then that “Bugs” -- as such little faults and difficulties are called -- show themselves and months of intense watching, study and labor are requisite before commercial success or failure is certainly reached."
      Written in 1878 by Thomas Edison, almost 70 years before the moth incident