Introduction
JavaScript is a powerful programming language used to create interactive web pages and dynamic user interfaces. However, li...
For further actions, you may consider blocking this person and/or reporting abuse
A very comprehensive list!
I'd add that sometimes conditional debugging can make things run slower, but that only starts to matter when running loops with a large number of iterations.
If that becomes a problem, sometimes it's worth just adding the condition into the code temporarily and putting an unconditional breakpoint into the code. For example, if looping through 1000 items for something called
foobar
, you could doThank you so much for sharing about this😊🙌
Which code editor do you recommend that is best for debugging?
As far as I know, I don't think there is a code editor just made for "debugging". Just use whatever code editor you normally feel the most comfortable with and use various tools or techniques to debug your code.
Personally speaking, I just use VS Code and it works really well for me.
I would suggest to use browser developer console for debugging.
It will not only help you in debugging but will also help you to understand how javascript code works in javascript engine step by step.
Tip:
Just use debugger/breakpoint in your code, which will help you to see your code working step by step.
Webstorm.
What do you think of VS code?
Сongratulations 🥳! Your article hit the top posts for the week - dev.to/fruntend/top-10-posts-for-f...
Keep it up 👍
Thanks for featuring my article :)
I would bet that 50-75% of development time is reduced by fully coding in Typescript and never writing another ".js" file again unless you have legacy code and will do quick fix
So many devs are adopting Typescript now and it sure is useful👀
Thank you for the great summary article. I notice your location is Pakistan and yet your english is impeccable.
Glad that you liked it!
Well, I guess reading novels and watching tv series + movies with English subtitles does help ;)
Thanks!
Sounds good , I meet with you on twitter and happy to see you here ...
🙌
Not a single word about
source-maps
Can't possibly fix in everything in just one article :)
There are ofcourse many more amazing methods out there as well! Btw, thanks for this addition.
What are the other amazing methods?