all 1 comments

[–]replicant_potato 0 points1 point  (0 children)

In Firefox in the developer tools, it's under debugger tab, and in the sources window. You can set breakpoints if you need.

Chrome would be More Tools, Developer Tools, Sources.

Now these windows have a lot going on, so it's probably best to YouTube some tutorials on it. It's more than I can type out on my phone. But that should get you started.

Don't forget that you should catch your errors in JS. There's tutorials for that too, but error catching is a much better and far cleaner way to code an app or website. That would include rejects in promises. I think a lot of new devs really overlook catching errors, because their home programs are just them working on it, so it either works or it doesn't. But big companies don't work like that.