by BrandoElFollito · 8y ago · 0 comments
I like JS but one of the things which are horrendous is debugging. Pycharm allows me to debug Python code in a simple, intuitive way.
I still need to find a setup in JS where I can debug the same way (there is always something which does not work, between the IDE and Chrome and DevTools). This is really the ONE thing which is pushing me away from that otherwise nice language.
For code running in a browser, you can do in-IDE debugging with PyCharm/WebStorm via a run configuration [1], although I tend to not bother and just use the Chrome devtools instead, which I find to be very high-quality.
My company does a lot of JS and Python, and I've found that people tend to be more comfortable using a debugger with JS because you can just open Chrome devtools, set a breakpoint, and go. In Python, you need good editor support or you need to use a command line debugger, so there's a larger barrier to entry.
[1] https://blog.jetbrains.com/webstorm/2018/01/debugging-javasc...
I was mostly referring to front end JS, where I sometimes managé to debug in my IDE and sometimes not (and I then need to have DevTools open).