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 Наука
📚 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.
It doesn't work
It works on my machine 😁😅
Why, what is the problem?
@@CodeBeauty I don't know 😕 I tried to download But it failed 😔
Here are a few tips that might help ☺️ www.makeuseof.com/ways-to-fix-download-failed-network-error-chrome/
@@CodeBeauty Thank you so much 💓💖
You really are an angel, everything i've been needing help on, you have a video on
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.
Intelligence with beauty❤️
been waiting for this video for some time now. now i can finish my assignments on time.
Omg THANK YOU for this video!!!! I'm looking forward to it 👍😁
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.
Thank you, it's amazing to know that my videos are helping! 🥰🥰
Sahi hai bhai
Great video! I learned a lot about debugging. Thank you!
I didn't have any idea about how to programming until I started watching your videos. THANK YOU!
your channel is a hidden gem.
You are the best! Thank you very much
I swear you're the best💙
Thank you so much!!!
Great video, you deserve a sub!
Like it! Also, in the beginning you said something very true, debugging is one of the most important things for a programmer :D
You are so good . Thanks for all those Videos.
Please do a Video About Socket Programming in C++.
Thank you !
thankyou so much
Hi Saldina, will Design Patterns such as Factory, Abstract Factory, ever be a part of your lessons?
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.
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.
Hi saldina, I need videos related to unit testing using visual studio (gtest)
Plz make the videos of all dsa concepts with c++. thank you.
What do you think about C++ styles? Do you like Allman or just use default VS formatting?
Hey Saldina, nice video!
Also l heard you got promoted to ads, nice job!
dobar video
Could you please make video on design pattern ( factory, abstract factory..) and on UML diagrams?
Thanks
Perfect videos, suggestion for the next videos could be CRUD with sqlite or some opensource database
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.
can u enter to operating system programming ?
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 !
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.
Can you please please make C# courses, your videos are easy to understand but no C#
Mam please complete dsa series
Can we debug in VS code ?
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++
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.
@@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?
@@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.
@@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
@@techademy9354 Ok thank you for all your help, much appreciated :)
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.
Mam , please make C++ GUI full projects
I want competitive programming video..please..
❤️❤️❤️
❣
🥰🥰
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.
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...
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
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
i love u
C++ builder is too expensive IDE. It should be free for students who has edu mail.
Run or debug😂😂😂😂
would love to see more of that toned belly wow!
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 😚
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.
Any references?
@@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