Chrome Devtools Tips and Tricks
mo.github.io
mo.github.io
[1] https://www.jetbrains.com/webstorm/
[2] https://github.com/nodejs/node/commit/14174a95a597cac7b848fe...
wat? :/
Node.js does not require you to use the browser for debugging. But you're probably referring to node-inspector, which uses Chrome or Opera. I personally find webstorm to be wayyy easier debugging node unit tests specifically.
EDIT: That was a dumb question. This IDE looks pretty cool. I'll check it out. But I still want something that I can run headless.
[1] http://blog.jetbrains.com/webstorm/2014/08/tracing-debugging...
Those and webstorm/intellij are the ones I have experience with. But most of the time, I just use the CLI debugger -- it's not hard.
[1] https://www.visualstudio.com/en-us/products/visual-studio-co...
FML. I hope this is a recent feature, I have wasted so much time missing something like this while trying to reskin a fairly large web app.
I suspect that Chrome devtools is so good because Google has access to a large number of web developers within the company to directly talk to. Chrome seems to have a solution for all the problems that developers face. My recent experiences with Firefox devtools has been bad. Specifically Firefox was not displaying js files loaded dynamically ( through require() ) in the debugger even though they were present in the page inspector.
The reason I did not raise a bugzilla was because the issue was intermittent ( ! ) and also I cannot share the whole application user interface with outsiders yet. Anyway, my working conjuncture is that these files are loaded from callbacks of AJAX requests and the problem happens when the callback for loading rickshaw fires before the callback for loading d3 has had a chance to fire. We ended up loading d3 manually as a workaround. But it is important to show rickshaw.js in the debugger since it enables us to set breakpoints there.
I understand the difficulty in filing bug reports on pages that you can't show people yet. If you get to a point where you _can_ show it to people (even just a limited set, not the whole world), and you're still running into the problem, the bug report would be very much appreciated.
`copy(temp1)`
I'm also working on my first chrome extension if anyone's interested in helping or could give some feature requests/advice. https://github.com/jxm262/consoletap
Using it to store this snippet which invokes the debugger when something tries to redirect you from the page, allowing you to inspect the state and any network requests (last time I checked, "preserve log on navigation" was buggy and didn't preserve all details of the request from a previous page):
window.addEventListener("beforeunload", function() { debugger; }, false)Once it gets shortcuts customization support, I think I might try to use it as my main editor for a while and see how that works out. I have it open almost constantly during development anyways, so using it as an editor would get rid of that redundant dedicated editor window and streamline my workflow by quite a bit.
(I never understand the UI design paradigm here)
Which brings me to another tip: in a multi-head setup, having devtools in an undocked window in a separate screen is very nice.
No, just like Sublime Text. Atom copied these features and shortcuts from ST.