4 ms·
I haven't worked on Atom or Electron apps (although it's on my todo list), but does the Chromium debugger not work inside them?
by lucaspiller 11y ago
I haven't worked on Atom or Electron apps (although it's on my todo list), but does the Chromium debugger not work inside them?
- Klathmon 11y agoYes it does, and that was my biggest annoyance with this article. The chrome debugger with breakpoints, profilers, and a whole slew of other goodies is great for this sort of debugging. Yeah, sometimes i need to avoid it because turning it on can actually slow the code down significantly, but the profiler would have been perfect to see where the time was spent here with just a few clicks.
- nacs 11y ago> that was my biggest annoyance with this article Perhaps a core contributor or someone who regularly works on the code-base would have approached it with the full suite of debugging tools available as you mention. However, I get the impression that the author of this article is not one of those and simply wanted to crack open his editor to fix this one problem he saw (and happened to learn more about Atom, Coffeescript and regexps along the way). Being upset over a great open-source contribution because they used "non-ideal" methods to arrive at a solution is just silly.
- Klathmon 11y agoI probably could have worded it differently, but I'm not upset about it, it just makes me sad that people might not know that these tools exist! I often use the same kind of thing for debugging (console.log('got here')) because it's sometimes too much work to leave the code to just get an understanding of if something is hit or not. When i started reading the article i was really hoping he would use the profiling tools. I just feel sad that they are being overlooked a lot of the time, and this is a textbook perfect use case for it!
- skybrian 11y agoYes, on a Mac you can type Command-Option-I. On other platforms it should be similar.