So we've reached the end of section six, and we've done the work of putting in error handling into
our app.
And the goal of this really was to centralize our error handling as much as possible, so that as we
add new features into the rest of our application, we've pretty much got centralized error handling.
And we don't need to think about it too much as we're writing the logic for the features that we're
going to add.
And just one frequently asked question really, can we debug react in VSCode?
And yes, we can.
And my original intention was to include a demonstration of exactly how to do that.
But the purpose of that demonstration was to show you how terrible the experience was of debugging JavaScript
based code, because you end up getting taken into all the third party JavaScript, and you could be
on line 15,552 as you step over a line of code and you go into third party JavaScript world.
But for whatever reason, I couldn't get it to work in react 19.
It worked fine in react 18, but with react 19 release candidate could not get it to work, so maybe
it's something I'll revisit another time.
But even then, I never use VSCode to debug JavaScript code because the humble console.log is just way
more efficient when you do debug JavaScript code, then when you start the debugger, it opens your
JavaScript based application in a new browser window, and then you need to do things like log in.
If you need to test something that's after authentication.
It's just I find the whole experience incredibly inconvenient.
So I typically would always just use console.log to get information about the thing that's not behaving
as I would expect it to be behaving.
So I would continue to recommend just doing that.
Wherever you've got a problem that something's not appearing in the user interface as it's supposed
to, just use a console log and see what's going on.
Also, we've got the Redux dev tools, which are really good if it's anything state related.
So coming up next, then it's time to go back to adding new features to our application.
And the next thing that we're going to look at is the shopping cart feature.