Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
10Dev28993yOh god debugging JavaScript. Easily the worst thing I’ve had to do as a dev. Complain all you want about c++ errors, at least it actually gives you something to work with. JavaScript errors means an hour or two of debugging with no help from the interpreter
-
But you guys know that there is a so called stack trace? Telling you exactly where the error originated from.
-
As @nitwhiz said. You look at stack trace, use a proper debugger and step back/forward. You'll soon know that the script itself is just a minified piece of shit if you can't debug it even with these powerful devtools.
-
@bashleigh TS also produces some wildly unhelpful error messages though. Granted, it’s a mountain of an improvement from JS
-
@ostream Don't entangle me in frameworks bs. Tools are just fine. I was talking more about the choices made *before* you that led to debugging, like someone not following the docs and writing total mess.
Debugging becomes an opt-in if TypeScript is in place 👌
Related Rants
Dear JavaScript,
"TypeError: Object(...)(...) is undefined" is not a helpful error message.
Sincerely,
Me
rant
js