JavaScript Error Handling and Tracking Tips and Tricks

preview_player
Показать описание
Find better ways to handle and track errors in your JavaScript code!

**SPONSORED BY HIGHLIGHT**

**DISCORD**

**STAY IN TOUCH 👋**

**QUESTIONS ABOUT MY SETUP**

**TIMESTAMPS**
00:00 - Intro
01:00 - JavaScript Console Methods (More than just log)
02:50 - Logging in Your Hosting Provider
04:50 - Logtail Addon For Heroku
13:00 - Wrap up
Рекомендации по теме
Комментарии
Автор

I have now also tested highlight. Highlight is really awesome. Great tool

ChristianKolbow
Автор

Love it James, thank you so much. Can you make a video on how to handle your errors in a NextJs project?

waldo-the-developer
Автор

One way to handle async errors in express is to wrap the async function in a handler so you can dry up the code and not have to write a try catch every time. Place it in a separate file, then import it into your routes.

module.exports = func => {
return (req, res, next) => {
func(req, res, next).catch(next);
}
}

app.get("/example", asyncHandler(async (req, res) => {res.send("Example")}))

Aquatic
Автор

thank you for this video, very informative

DeineWebschmiede
Автор

Hello James, I saw your video on code academy about vscode. You said that you use mac version of vs code. I have searched alot about this topic but can't seem to find an answer, do you know anyway of how I can use vscode on mac with Windows functionality?

redblue
Автор

Can you please help me out with setIntervals. when I use interval to run time. when I shift to new tab and leave the tab in which timer is running inactive for a long time. the timer does not move. is there a way to solve this problem

qwcjtgd
Автор

Nice video, very informative! I haven't looked into error handling too deep, this a good starting point. Thanks

AngelEduardoLopezZambrano
Автор

Me that just duelled the analytics beast to tag my errors

elmalleable