News for hackers. Stuff that matters.
Re:Show HN: A curated list of Chrome DevTools tips and tricks by gibbitz on Wednesday October 08, 2014 @09:53AM (#8426849)
Some nice tips in here. I had no idea multiple cursors were supported. I now live in the future!

Would be good to know the cross-platform support for these features without testing them though. No "cmd" key in Linux :( (though, the ctrl key works as expected)

Re:Show HN: A curated list of Chrome DevTools tips and tricks by jefkoslowski on Wednesday October 08, 2014 @09:56AM (#8426858)
Thanks for your feedback, I will do that.
Re:Show HN: A curated list of Chrome DevTools tips and tricks by vlunkr on Wednesday October 08, 2014 @10:41AM (#8427091)
http://www.briangrinstead.com/blog/chrome-developer-tools-mo...

I didn't know about monitorEvents, it's really nice! This link has more details about what events you can monitor.

Re:Show HN: A curated list of Chrome DevTools tips and tricks by michaelmcmillan on Wednesday October 08, 2014 @10:41AM (#8427088)
Chrome Devtools has basically become my main tool when I do web development. I honestly can't imagine what I did before Chrome was around.
Re:Show HN: A curated list of Chrome DevTools tips and tricks by billyhoffman on Wednesday October 08, 2014 @11:33AM (#8427424)
You probably used Firefox + Firebug and couldn't believe you used to do development without them.

Before Firefox + Firebug though? Well, you probably have suppressed the memories about using alert() calls for debugging through your tears. :-)

Re:Show HN: A curated list of Chrome DevTools tips and tricks by JeremyMorgan on Wednesday October 08, 2014 @02:18PM (#8428496)
You nailed it.

alert("1"); alert("2"); alert("we got here");

Ah, I don't have fond memories of those days.

Re:Show HN: A curated list of Chrome DevTools tips and tricks by umaar on Wednesday October 08, 2014 @01:24PM (#8428123)
Nice.

FYI: I infrequently post some of these tips to Google+: https://plus.google.com/+UmarHansa with detailed descriptions. Also on Twitter: https://twitter.com/umaar with less description.

Re:Show HN: A curated list of Chrome DevTools tips and tricks by exhilaration on Wednesday October 08, 2014 @09:56AM (#8426856)
The second item, Command + Click on CSS, isn't showing your example image: http://devtoolstips.com/image/99439992616

This is on both Safari and Chrome on OS X.

Re:Show HN: A curated list of Chrome DevTools tips and tricks by jefkoslowski on Wednesday October 08, 2014 @10:03AM (#8426882)
Thats odd. Removed for now, I will create a smaller gif or video. Thanks.
Re:Show HN: A curated list of Chrome DevTools tips and tricks by jefkoslowski on Wednesday October 08, 2014 @10:09AM (#8426916)
Just uploaded a new smaller gif, it's working now.
Re:Show HN: A curated list of Chrome DevTools tips and tricks by Igglyboo on Wednesday October 08, 2014 @10:07AM (#8426903)
monitorEvents is really awesome.

Would really like a little writeup on each of these to accompany the gif, couldn't quite figure out the "copy an object to the clipboard" one.

Re:Show HN: A curated list of Chrome DevTools tips and tricks by heffo on Wednesday October 08, 2014 @11:29AM (#8427409)
The copy to a clipboard has a few elements to it.

1. If you right click on an object in the console, you can store it as a global variable. This makes an exact copy of the object that is in the global scope.

2. They used $_ which is a shortcut to get the result of the last command. So in the example, temp9 was the last command, so $_ is a copy of temp9

3. The important bit is the copy(var) call. This will copy any var into your clipboard!

Hopefully this was helpful!

Re:Show HN: A curated list of Chrome DevTools tips and tricks by andybak on Wednesday October 08, 2014 @10:37AM (#8427068)
Yeah, me too. Ever since I learned to read I've found myself relying less and less on video tutorials ;-)
Re:Show HN: A curated list of Chrome DevTools tips and tricks by jefkoslowski on Wednesday October 08, 2014 @10:22AM (#8426983)
Thanks, I will work on it.
Re:Show HN: A curated list of Chrome DevTools tips and tricks by hamburglar on Wednesday October 08, 2014 @03:37PM (#8428990)
In general, some very brief text describing things beyond just an animated GIF would be really helpful. I spent a long time watching the eyedropper one over and over, trying to figure out what exactly you did to get the eyedropper to show up. It doesn't help that this is apparently a feature that's only in canary for now (I'd avoid that, or at least call it out explicitly), but even ignoring that, trying to get instruction by watching a dot flick around unpredictably in a screenshot is difficult/inefficient.

edit: great idea for a site, though. I've subscribed to your RSS.

Re:Show HN: A curated list of Chrome DevTools tips and tricks by lobster_johnson on Wednesday October 08, 2014 @08:59PM (#8430263)
Anyone know of a better way to get proper JSON out of something emitted to the console? The "store as global variable" + copy($_) is ridiculous.
Re:Show HN: A curated list of Chrome DevTools tips and tricks by tobeportable on Wednesday October 08, 2014 @04:24PM (#8429253)
I don't see a way to suggest a tip or trick.

My ah ha moment was when i discovered the usage of :' debugger; ' in a.js with inspector open

Re:Show HN: A curated list of Chrome DevTools tips and tricks by jefkoslowski on Wednesday October 08, 2014 @05:14PM (#8429496)
Added to my todo list, thanks.
Re:Show HN: A curated list of Chrome DevTools tips and tricks by dccoolgai on Wednesday October 08, 2014 @02:58PM (#8428748)
My personal favorite is debug(function_name). Creates a breakpoint at the beginning of the function. I use it almost daily.
Re:Show HN: A curated list of Chrome DevTools tips and tricks by ufmace on Wednesday October 08, 2014 @05:05PM (#8429460)
That one where you click on the curly braces to auto-de-minify is awesome!
Re:Show HN: A curated list of Chrome DevTools tips and tricks by Cthulhu_ on Wednesday October 08, 2014 @10:26AM (#8427010)
Why does this page use .gifs instead of HTML video? :'(
Re:Show HN: A curated list of Chrome DevTools tips and tricks by jefkoslowski on Wednesday October 08, 2014 @11:40AM (#8427477)
Sorry about that. I will try to convert everything to video on the next week.
Re:Show HN: A curated list of Chrome DevTools tips and tricks by superasn on Wednesday October 08, 2014 @01:12PM (#8428026)
You can also try using gfycat.com to do this automatically.
Re:Show HN: A curated list of Chrome DevTools tips and tricks by jefkoslowski on Wednesday October 08, 2014 @02:30PM (#8428572)
Amazing, great tip! Thanks.