2:33 - Please, if you're going to quote my parents, at least mention them in the description.
@DetectiveNiko5 жыл бұрын
Lmao
@luizandre123454 жыл бұрын
lol
@SankoshSaha_014 жыл бұрын
That hits home
@hsaidinsan63454 жыл бұрын
😂😂😂
@calibr06364 жыл бұрын
@@SankoshSaha_01, you ok?
@alijoyce21693 жыл бұрын
You can feel that he really knows his stuff and spent years for it. I really appreciate how it is free for us to enjoy.
@jondoe796 жыл бұрын
The most enjoying C++ series ever
@romeojacob23393 жыл бұрын
instablaster...
@drozopoly Жыл бұрын
Agree
@wolfsnow7118 ай бұрын
800 record? You were so underrated back then, considering that even six years later you still have the best C++ tutorial. The most precise, practical, professional, up-to-date and easy to understand. And you are so passionate in these videos too! I've had a headache trying to learn C++, because they only teach what the code means and how to set up the tools for compiling, but give no understanding of how it actually works top-down. It's so hard to grasp the process without CS education, I wasn't really learning and coding most of the time, but collecting scraps of information from different materials trying to build the image of how a process should work. But after your vids about compiler & linker I'm so fired up! I finally know what I'm doing when I write the code. I can't thank you enough!
@02quocanh77 ай бұрын
Well, as a person who is having CS education (and still doing good), I realized that what I know is... almost nothing, compared with KZbin academy in general and specifically in this series. Got to say that I also feel the same, and it helped me a lot, as now I really understand how things work, at least now it make sense.
@Dazed_047 ай бұрын
Another CS fellow here, still in first sem. I wanna say that I can write code that's sufficient for problem solving but even if I get it to work without copying someone else's code there's still that question in the back of my head "but why?". Why do things this way, what it actually means. The whole reason I like coding in general is the sort of magical feel you get when you build something out of nothing (it's not the instant gratification I chase I swear ;) . But then you get stuck on these questions and it's like someone took away that magic, like everything you're doing is using someone else's power(which is both true and not true). So these c++ videos are a treasure trove that just never ends.
@rcookie51287 жыл бұрын
Debugging is love, debugging is life. haha for real: I partially enjoy debugging, its like solving a puzzle.. It can get reaaally frustrating some times, and sometimes even irritating, but over all its a key part of coding and learning to code better I think :)
@jamesmnguyen7 жыл бұрын
ΜrCookie I once was using an external library and apparently my code kept crashing. Unfortunately I didn't trace it back to the library since the debugger told me a pointer was deconstructed (the class). After a few hours of hair pulling, I found out the library was manually calling the destructor.
@warbossworm6 жыл бұрын
I find that the satisfaction of defeating a really nasty bug is one of the best feelings when coding!
@Manas-co8wl6 жыл бұрын
It's also the most defeating... I mean it's always so easy in hindsight. Makes you rethink your belief in your prescience
@Megalcristo24 жыл бұрын
Is this C/C++?
@section99993 жыл бұрын
But the real question is, do you chocolate chip?
@Kanak_Bodkhe Жыл бұрын
being able to watch the memory allocation that much close is fascinating for me, like you can actually see those value getting stored physically in that hardware is just amazing :O
@JohnnyThund3r3 ай бұрын
This really is the best C++ tutorial on KZbin, I'm running through it again for the 2nd time because Cherno just knows how to teach you how to think like a programmer, even if you're not planning to use C++.
@daisonc.a.24723 жыл бұрын
I always used print statements to check execution. Never thought that debugging could have be way easier than that. Thank you Cherno for teaching me how to debug.
@aronas1353 Жыл бұрын
wow i have a little bit of programming experience and this series has really helped me to understand the nitty gritty of the whole programming process. tysm for making this
@MaxwellsWitch7 жыл бұрын
4:25 Well, you taught me so much in two minutes. So I can see what the variables are set to without having to use cout
@Factory4005 жыл бұрын
REALLY wish I had this when I started programming. This is fantastic.
@Adomas_B Жыл бұрын
Yeah that pillow looks great
@annabelletrinh9363 жыл бұрын
For XCode users: - Memory View : ⌘⌥⇧M or through the Debug --> Debug Workflow --> View Memory menus. - Autos and Locals are available by clicking on the arrow at the very bottom of the debug console. - To Watch a variable: Right-click on a variable and click on "watch", or right-click on the debug console and click on "add expression"
@sharwankumar-ci3hd2 жыл бұрын
Could you please guide me how to debug crash program?
@samdavepollard Жыл бұрын
you should sell those pillows as merch seriously, i'm sure lots of us would happily support the channel that way especially those who don't want to do the whole patreon thing
@ginsutime29632 жыл бұрын
If you're getting random stuff instead of the cc groups, one of the things you can do to fix it is check to make sure you're on the same solution platform (x86). Switching from x64 to x86 fixed it for me.
@spaidory874 Жыл бұрын
Yeah I couldn't see the memory it said (error reading string), then I changed from x64 to x86 and it worked, even though my computer says it has a x64 processor
@Shah_Khan4 күн бұрын
Any reason for that?
@ginsutime29634 күн бұрын
@@Shah_Khan Here's a decent enough explanation I found: The absence of cc in the Memory 1 window on x64 is due to the architectural differences between x86 and x64, with the latter relying less on condition codes for control flow. You can still access condition codes in the Registers window during x64 debugging.
@Shah_Khan4 күн бұрын
@@ginsutime2963 thanks for explaining🙂
@jmx8086 жыл бұрын
For those not well versed in VS17, Ctrl+F10 (or right-click Run-To Cursor) is a better way of moving from an existing point, to another point in the code (i.e., skip through a for loop)
@steele.in.motion5 жыл бұрын
It's so great to find a series that teaches the way I learn. Thank you for the effort you put into this!
@JRCSalter6 жыл бұрын
Learning soo much from this series. Never knew you could view the actual memory. That is fantastic.
@uovo2 жыл бұрын
Love how you explains it first and show it after, it's like you are creating the dots so it's easier for us just to connect them
@slaozeren87423 жыл бұрын
I have no experience in programming and I have been learning c++ for 4 days. I had to watch this video 3 times to fully understand it, but it was awesome. Thank you!
@oberon2159 Жыл бұрын
Literally the best C++ tutorial series on the internet, thank you!
@vratislavi2 жыл бұрын
I think the fact I did not learn how to use the debugger caused that I didn't become a programmer, I used printfs to debug my programs on uni and it was very frustrating and stopped my progress a lot. It was not the only thing - I had different ideas about myself back, a lot of personal issues, but watching this episode right now after 15 years really hits a spot. Maybe I will return to programming :)
@I_hate_HANDLES Жыл бұрын
i wish i could watch this in my first year of university so that i would not be so frustrated debuging wrongly, now i am a little left behind🩼 but still very fun and helpful to watch
@theseangle8 ай бұрын
Imagine if you didn't stop, you'd have 15 years of experience, and that's like senior's grandsenior, you'd be rolling in cash 💀
@kiranaric3 жыл бұрын
Just a point of note: You need to be in debug mode in order to open the memory window. It means you place a break point, start debugging and then go to the menu Debug -> Windows to see the Memory option. I couldn't find it and a simple search revealed this fact. When Cherno opened the memory window, he was already in the debug mode.
@kajtek82082 жыл бұрын
dude you saved my life, I freaked out to do not find that memory menu option
@muhammadtalhaidrees Жыл бұрын
😘❣
@EldRiCkVis Жыл бұрын
Ohhh my goodness. I can finally see what is going on in the background while writing code. Can’t believe I’ve been going to school for more than 2 years and nothing like this was ever mentioned.. how??? God bless you The Cherno
@RomeWithTheHEMIs7 жыл бұрын
Much love, Yan. This is one beautifully executed series.
@helgi78882 жыл бұрын
if you can"t debug where you want just change setting of optimization(project properties->C/C++ ->Optimization-> Disable)
@sbzmc8 ай бұрын
I really appreciate your comment, I was looking for this the last two hours. Thank you so much!
@wiiguy217 жыл бұрын
15:30 - actually, at the end of the loop it will run i++ first, and then do the comparison to check if i < 5
@mytech67797 жыл бұрын
++i should increment before the comparison, i++ should compare then increment. Unless you are saying that i++ is the last part of the "for" statement and so i++ will increment at the end of each pass. Easy to test by printing i to the screen in the body of the loop.
@pooria_garrett30205 жыл бұрын
@@mytech6779 I just tested and what @Flaming Taco says is true.
@tylerlowrey88544 жыл бұрын
@@mytech6779 I know this is a really late reply, but this is incorrect. ++i and i++ don't make a difference in the header of a for loop (I believe this is because modern compilers optimize i++ to ++i). However when assigning a variable it does make a difference. If you have a variable x and its value is 7, when you do int j = ++x; the value of j will be set to 8 because the increment operator is applied to x before assignment. However, if you do int j = x++; then the value of j will be set to 7 because the value of x is assigned to j before it gets incremented.
@NackySlocker4 жыл бұрын
I have found this to be accurate. I was watching i, and it said i was 4, but it was grayed out, apparently it becomes "undefined" after the for loop.
@Andre-vn1sb4 жыл бұрын
I never saw a tutorial with so deep details, so you really understand whats going on inside mashine - thank you !!
@marian39787 жыл бұрын
Your timing is impeccable. Just when there's something I need to know like c++ header files or debugging in VS ( like today ) you upload a video on exactly that. Thanks!
@Mirage_32532 ай бұрын
What's awsome is my favorite coding youtuber(you)just happens to have made a c++ tutorial series which I found as I decided to learn c++. not only is this series way more informative than any other series or video I have tried but it geared toward the one thing I wanted to learn c++ for in the first place... Game dav 😂🎉🎉🎉🎉🎉
@SayouPla4 ай бұрын
Coolest thing in c++! made me understand header files more by just playing around with it!
@FINTHRTD4 жыл бұрын
Cherno: "If you are programming without this - I do not know what you are doing?" (@4:21) Me: "Everything perfectly! :) :) :)"
@karmavil40342 жыл бұрын
"I use the console" would have been more realistic. Anyway he is clearly highlighting some functionalities to let you know they're there if you need them
@ragothamang70565 жыл бұрын
This the best video I have ever seen in the Programming context.... I Love the way you teach it
@tiend24212 жыл бұрын
Wow... I'm re-watching this in 2022 and it's amazing how good you are at explaining things. I'm blown away. Good job mate, and thank you.
@PsychadelicoDuck4 жыл бұрын
Seeing how easy Visual Studio makes breakpoints has sold me on it.
@AnimalsAdventures5 ай бұрын
it's 2024 and I'm watching this wonderful series after 6 years, and I have no idea what Cherno is doing these days, but I hope he's doing great
@ChrisFotosMusic4 жыл бұрын
"this all about figuring out...what did i do wrong? what did i do to deserve this?" im gonna be good at this
@painfullyhuman Жыл бұрын
this has changed everything for me
@SuheybBecerek4 жыл бұрын
In my University we use Visual Studio as IDE in most of the classes and I took C, C++ and C# courses using this IDE yet I am just learning to debug
@MicheleSollazzo Жыл бұрын
I am studying C++ on a 1300 pages book, currently around page 850, but being a VS feature I've never used and just discovered Breakpoints and Debug mode only thanks to Cherno. Thank you!
@Kanak_Bodkhe Жыл бұрын
umm can you help me with VS code like i still didn't get that where is diagnostic tools and memory window in the latest VS code IDE
@MicheleSollazzo Жыл бұрын
@@Kanak_Bodkhe I'm using VS Community, not sure if it's the same
@Kanak_Bodkhe Жыл бұрын
@@MicheleSollazzo yeah I realised 2 days ago that VS and VS code are different 🥲
@ChyrosNX74 жыл бұрын
Another neat feature in debugging is you can set a condition to only break when the condition has been met. Pretty useful inside loops where you don't want to break everytime it hits the breakpoint. I.e., # Break only when i == 5 for (int i = 0; i < 100; i++) { std::cout
@isweartofuckinggod3 жыл бұрын
DAMN! No wonder people love Visual Studio so much!
@AbduqodirNurmatov-f3x7 ай бұрын
The most entertaining C++ series to date and do you have lessons about flutter mobile?
@kjz958510 ай бұрын
that's so incredible, U let me know lots of detail knowledge in C++
@AdhyyanSekhsaria7 жыл бұрын
I think we are at a point where people who have no idea about programming have stopped watching. So there wouldn't be too much point in covering very basic stuff like for loops and if statements. Keep up the good work!
@d3bbi3396 жыл бұрын
Adhyyan He gets to the bottom of everything. It creates a solid base to work from. You could learn something you had no idea you didn't know. It's worth the listen to me. But then again I'm still pretty new. Still here tho. I'm for real trying to learn this so I definitely appreciate the details. I get how it might get boring if you already know most of this but he did say at the beginning that he wanted to create a thorough c++ course that teaches people everything they need to know to create clean, fast code. So hey hey I'm still here don't ya dare take them details away from scrubs like me. Lol
@pascalladal81252 жыл бұрын
And yet, about no one noticed he got the order of execution wrong lol... it increments before checking the condition while he says that it checks then increments.
7 жыл бұрын
Quick question or maybe and idea for a future video: During debug at around 12:42 the memory view showed a perfect example of byte order, most significant, least significant bit and in general the architecture of the cpu coloured in red. Would be awseome for a future episode to talk about why it's written as "08 00 00 00" instead of "00 00 00 08". Love watching your videos, they refresh my memory a lot!
@TheCherno7 жыл бұрын
Definitely going to cover that... eventually :)
7 жыл бұрын
Thank you for your reply, much appreciated!
@bondymagnomous35447 жыл бұрын
Isn't it big endian vs little endian?
@justind69837 жыл бұрын
they are read backwards
@mauricestardddude83175 жыл бұрын
It is that bytes are saved in inverted order Your PC can only manipulate bytes (8bits) and not single bits Each byte has it's own place and name So when you wanna read a number that is bigger than a byte you will need to acces two "places" So let's assume we save F7 65 (this takes up 2 bytes, Hexadecimal is designed so that each number equals 4 bits so two make up one byte that's why they are speperated like this) in what is called FE0037 It will use FE0037 and the next one (in this case FE0038) to save the number But now what if we wanna read this in 8 bit instead of 16 bit mode (16 bit is when we use 2 byte, 8 when a single one) So let's read FE0037 (the smaller one) If it were saved in normal order we would end up with F7 which in no way equals F7 65. It equals that as much as 60 equals to 6054. Better it would be to get 65 which does have euqal the lower part of the number, just like how 54 is 6054 minus 6000. And that's why we save this 65 on the byte we accesed. It makes accessing that byte again in a different processing mode more logical instead of having to think about in what mode you were and from there count upwards to which byte you have to acces to get a somewhat logical representation.
@merridistokes69993 жыл бұрын
Thank you I just got into C++ a few months ago and in that i have learn a-lot from your videos using VS IDE. Keep it coming!!!
@ramseybolton15093 жыл бұрын
Thank you. TQ. TQ. I just performed my first debugging for a program. I even ended up using the Memory Window to check the values in my array change right in front me (I was "stepping over") and see the problem. It just felt so good. Best Video Ever!
@nicklandreth25274 жыл бұрын
I will definitely be buying some of your merch when I get my first job as a developer. You are a great teacher.
@gowthammaran72576 жыл бұрын
Hit like those who have been programming in Visual Studio for more than 2 Years and still checking this amazing video and learned a lot. U r da best Cherno :) Keep continue ur excellent effort (Y)
@parasarora58695 жыл бұрын
thank you...i was a bit scared to play with memory and debugging but now i feel a bit confident. great video and thanks for codelite too. Its a nice simple ide
@doctorbongjoose4207 жыл бұрын
The pillow is almost perfectly aligned with the couch.
@mixchief3 жыл бұрын
Hehe, I also took notice of that
@karanb20672 жыл бұрын
I literally took around 2.5 hours to make notes of this video. Thank you so much.
@ht45794 жыл бұрын
This video should be the prerequisite for introduction to programming lectures in college to understand what we are going to do . Thanks for fascinating explaining
@flamag73462 жыл бұрын
The best c++ series I found on youtube. Really inspiring
@jul88033 ай бұрын
My breakpoints simply were ignored because the optimization was set on speed. Disabling optimization solved the issue.
@abhishekahirvar77832 жыл бұрын
piano sound in background is so freaking nice
@devchaudhary782 жыл бұрын
Thanks for this great series cherno loved your content even though not going to use in Game Dev, but still helped a lot:)
@danpetre54142 жыл бұрын
This is gold. I just started to learn C++ and I love it. Thank you 🙏
@abhishekkumar-wm2ie6 жыл бұрын
Hi Cherno. I just loved this series. Its a great fun. Please continue with this. Currently I will not be able to pay but definitely a lot of love n respect for what you are offering.
@seayellow58343 жыл бұрын
Wow this is the best video of the basis of debuging
@youssofprogrammer7546 Жыл бұрын
this video helped me a lot because with breakpoints i learned how to find my mistakes even if it is very small thanks the cherno
@Xx_McJasper_xX3 жыл бұрын
Liked, subscribed, commented, and speeding towards the Game Engine series. Great vid, keep up the stellar work!
@stephen6864 жыл бұрын
The only thing i wish these youtube tutorials would do, is provide some exercises for each video with an answer key (if one wants to look). I listen to the video, I am pretty sure i understand it but i guess i just need the confirmation that I have grasped the essence of what is being taught in each video. I am not complaining as i am in the beginner stages of learning so, what would i know?. Anyways, liked and subscribed. P.S There is something about the cool color gradients and the soft music in the background of these videos that keeps me coming back.
@HelloFromTokyo6 жыл бұрын
Best C++ videos on youtube, love this series, hope there's more
@roycinta37314 жыл бұрын
Thanks for your work bro i learn a lot of your videos i never find a good tutorial fo visual studio and yours are the best regards
@avtem2 жыл бұрын
Omg the orange guitar is actually an ideally looking electric guitar that i dream about. Edit: This video has to watch every programmer in the world by my opinion. i did not know anything about "cc". Thank you, Cherno!
@cwill13378 ай бұрын
I went to university for Computer Science and took multiple programming courses including java, c, and c#. None of the professors thought it was necessary to teach us how to use the debugging tools. I wonder why.
@puppetlord19083 жыл бұрын
Chuck Norris does not use debugger to debug his code, he stares the code down until the code confesses.
@Puffadderr7 жыл бұрын
Hi. Are you going to make episode about const keyword? I've been always struggling to understand why and how things can go wrong if not using them.
@TheCherno7 жыл бұрын
Yep, absolutely
@fburnrostro956 жыл бұрын
My prof loves throw const combinations with us just to fuck with us!
@krec3487 жыл бұрын
Thank you once again for the awesome content!!! (your hair is amazing, dam)
@justchill999022 жыл бұрын
Thank you. Debugging is very important. :)
@Helloitsjade__8 ай бұрын
This is so amazing!! Perfectly executed explanation. :)
@roja2 жыл бұрын
Holy crap! mind BLOWN
@sablanex7 жыл бұрын
You can also CTRL+F10 and it will run to where the current line where the cursor is. Use that all the time, makes "regular" breakpoints almost useless.
@thestarinthesky_4 жыл бұрын
Thank you so much. It has been super helpful. I enjoyed watching these series of videos.
@joaocesardelima43186 жыл бұрын
Excellent! I'm learning a lot with your series! Please keep it up!
@michaplucinski1422 жыл бұрын
Wow I used to cout everything to check it's valuse and make some code comment /* */ to make it not get executed That's really helpful video Thanks again
@boweneveritt34002 жыл бұрын
Really incredible stuff even years later thanks!
@ss-md4qn Жыл бұрын
Wonderful session
@raedkhader32929 ай бұрын
Very profound knowledge, thank you
@kltf34cgsdawe93 жыл бұрын
0xcc is opcode for software interrupt INT3 used by the debugger
@walid45882 жыл бұрын
Thank you for this tutorial. this is very helpful.
@davidboygenius68434 жыл бұрын
I have never seen so many guitars in one's house before. You should do a guitar learning series!
@eruston6 жыл бұрын
Fantastic stuff! Great quality video and information. Much appreciated!
@Jamesomnipotent5 жыл бұрын
bucky and thecherno
@hansolo65427 жыл бұрын
Dude, how many guitars do you possess ? x)
@TheCherno7 жыл бұрын
Not enough ;)
@pinklady71847 жыл бұрын
Han Solo if you have asked me that question, I would have replied "too many." Lolol. I sell guitars in my mother's shop. I wish I could learn to play guitars, yet I have never touched any guitar in my family's shop. I just never get the time for guitar tutorials.
@pinklady71847 жыл бұрын
Han Solo I don't really own all the guitars in my family's shop. I was only joking in my last comment. I felt rich which I said "too many." I can write music only in my head and I would love to put that on paper or on musical instruments. I can play piano only just a little, but I don't get free time for myself. Besides I have other hobbies in the evenings and on lazy Sunday. Someday, I will get around to learning guitar or ukulele.
@senatorpoopypants71826 жыл бұрын
Dude and possess don't go well in the same line
@rod-abreu4 жыл бұрын
It's never enough :D
@vivekkumaragrawal91474 жыл бұрын
so much to learn from your videos thanks again.
@Toorall6 жыл бұрын
thank you for the incredible videos you make!
@master47552 жыл бұрын
8:33 Can we appreciate how fast he managed to write this for loop... WOW
@SrNavi1555 жыл бұрын
This tutorial is really exciting! Cheers!
@shieng482 жыл бұрын
Thank you for these series
@MrBojo-jv4qq6 ай бұрын
I thought that Autos will automatically show the loop variables changing their values, as you step through the loop, but you actually had to manually enter the variable c to see it's values change as the loop circles.
@cichytechnik6529 Жыл бұрын
Hey make sure that at your settings you have optimizer disable.. i fall for that one
@LifeSuxTR5 жыл бұрын
This was way better than i expected saying that as an experienced programmer.
@Gruby7C1h3 жыл бұрын
Pro tip: right-click on a line and select "Run To Cursor" (or press Ctrl+F10) to move from a breakpoint to specific place without setting a new breakpoint.
@screwlew2 жыл бұрын
put this in my notes :)
@senatorpoopypants71824 жыл бұрын
Dude I get that you have a preference for msvs but you could also maybe cover this on xcode for folks who are following on a mac
@claudedu21143 жыл бұрын
Here is another mac user who is really suffering from this episode. Maybe that is why he mentioned we should google things😂
@Marcin79W9 ай бұрын
Great one, thank you!
@teefa5854 жыл бұрын
*** Potential Error You May Fall In: IF you enable optimization on debugging mode you will not be able to debug your code correctly as the execution will not follow your code instead it will follow the optimized one so you will find the yellow arrow of the debugging mode move in an illogical order
@teefa5854 жыл бұрын
@@deanpavlovski5343 You're welcome 😀
@Nox5683 жыл бұрын
Hooooly moly, the memory view really blew my mind as someone coming from JS. That's some dark magic right there. Edit: WAIT WHAT I CAN SEE VALUES FROM OLDER FUNCTION CALLS IN THERE AS WELL?!!?! omfg