4 ms·
My roots are the same as yours (except Java). I am not a professional developer, but rather code to simplify my work, so some projects or write as a hobby. I l
by BrandoElFollito 9y ago
My roots are the same as yours (except Java). I am not a professional developer, but rather code to simplify my work, so some projects or write as a hobby.
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.
- 11235813213455 9y agoyou can debug js with: node --inspect-brk some-file
- cjoy 9y agoIt seems a bit unfair to blame the language for the added complexity that is introduced when debugging a browser script. Pycharm (or any of the JetBrains IDEs with JS support) offer a very comparable debugging experience for server side Javascript.
- BrandoElFollito 9y agoNot being a professional, I tend to see a language through holistic glasses : the ease and versatility, the libraries, IDE support, debugging, etc. 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).
- alangpierce 9y agoPyCharm/WebStorm lets you debug node processes in the same way as python processes, so debugging tests doesn't seem to be much different for me. 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-javascript-with-webstorm-2017-3/ https://blog.jetbrains.com/webstorm/2018/01/debugging-javasc...