Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
C0D44573020dBoth, you shouldn't learn a language / tools and not know how to debug it.
Webstorm is good for navigating between files linting and other stuff but its not much help for debugging.
If im wrong by the way id be interested to know other ways.
Use logs from the issue point and work your way back up. Remove stuff to make the components less complex and see if the same behaviour is still observable.
Read react documentation.
ManBunMike27620dThe best way to debug JS and react is not to. Go learn Python, C/c++, C#, Go, swift.
Even Java FFS.
I'm kidding btw, but I seriously hate JS.
Often times the power is in the debugger -- trace the program by hand/paper and pencil/mind and then compare it with the debugger at each step. When you're wrong take note and find out why. Like someone said "you do both"
compSci99120dAdvice I give people who are learning react is to implement any APP they like in TDD.
Be it a YouTube player, a janky social media site etc.
wisefoolkp5519djust learn the basics then learn(google, stackoverflow) as you go along... if frameworks, search for simple examples already implemented in git and try to analyze how it was implemented and how it works...
katbreitin88419dI should say I have been learning the language got half-way through an advanced JS course at a local college but had to drop due to the job (it was not covering the things I needed to learn) Every night/weekend watching videos and coding along. I have bad ADD I can’t learn by reading at all.
To clarify I will continue to learn the language of course but should if I focus on debugging until I get up to speed will I be able to ‘fake it’ until I ‘make it’
Anyone else switched from PHP to JS?
wisefoolkp5519dId say fake it till you make it... learn while on the job, that will be valuable experience... nobody starts off knowing everything... just research what you may need to make the job work and put some effort into it while sharpening your skills... it will be seem pointless at times, stressful and sometimes depressing not knowing how to hack it, but if you keep at it it will eventually take form... it has a steep learning curve, but once you are past it things just start to fit in place... the world of programmers is about asking questions, finding solutions and assisting others to get on the same level(otherwise it would be a barren wasteland filled know it alls hehe), ask a colleague to assist where you feel things are not clear to you, and learn from what he/she is doing... good luck
katbreitin88419dThank you for the advice and encouragement! Going to spend the day learning the dev tools and built in debuggers in webstorm.