8 ms·
Updates to DevTools in Chrome 62
- nofilter 9y agoI see myself using the Block-level code coverage quite often.
- heavymark 9y agoCMD+Shift+4 has always allowed you to take screenshots of any parts of your screen, (including your devtools), so curious why this is a feature in Chrome? Unless it's meant for Windows maybe where it's harder to take screenshots?
- 0x0 9y agoYou can hit printscreen in windows to take screenshots (1 key instead of 3, even easier than mac). I could imagine it would be useful in remote debugging sessions (such as when inspecting android webviews over USB).
- simlevesque 9y agoThose are two totally different things. Windows take a screenshot of everything visible. Cmd+shift+4 on a Mac allows to select a region to save as a screenshot. Finally, if you are on Mac, this update provides node level acreenshot, allowing you to save an image of a HTML node with just one click, no need to drag the cursor. This is especially useful if the node takes more space than the viewport since before you had to stitch screenshots together.
- 0x0 9y agoAgreeing on 100% of that. Just wanted to point out taking screenshots in windows isn't "harder". (You can also alt-prtscr for just the active window, or use the snipping tool to screenshot a region).
- nolok 9y ago> Windows take a screenshot of everything visible. For the record, it's still not a region selector but there is also alt + printscreen to take only the visible windows.
- ZenoArrow 9y agoThere's also the built-in Snipping Tool, which allows you to take a screenshot of a selected region. I use it a lot at work. Apparently, Windows 10 Creators Update comes with a shortcut to capture a region, Ctrl + Shift + S. http://www.thewindowsclub.com/snipping-tool-capture-screenshots-windows-8-tips http://www.thewindowsclub.com/snipping-tool-capture-screensh...
- mikewhy 9y agoDon't you still have to open Paint, press paste, hit save, and choose where to save the screenshot? For the record, cmd+shift+3 takes a screenshot and immediately saves it to your desktop on macOS.
- davchana 9y agoYes, and Dropbox (& others might too) offers to listen to PrtScr and save in Dropbox/Screenshots as image automatically, without using paint or anything.
- Dylan16807 9y agoBut dropbox doesn't save automatically when you use the snipping tool. Is there any way to make that happen?
- nickphx 9y agohttps://github.com/ShareX/ShareX https://github.com/ShareX/ShareX
- ehsankia 9y agoActually, the equivalent on Windows that was added on Windows 10 Creators update is winkey + shift + s.
- aargh_aargh 9y agoI imagine this will be useful for taking screenshots of arbitrary elements via the headless mode. Anyway, why would it be harder to take screenshots in Windows? Have they restricted the Win32 API recently (I haven't kept tabs)?
- reustle 9y agoI think he is referring to how on windows you can only screenshot the entire screen. Not sure if that has changed in recent years.
- vetinari 9y agoYou can also screenshot the current window (Alt-PrtSc). Since Vista, there is also snipping tool, which allows the same things as Mac screenshoting.
- vic20forever 9y agoWin-Shift-S to select a rectangular area to capture
- konart 9y agoYou can totally screenshot anything anyway you like on windows. The only difference is that windows has separate utility for this instead of a shortkey
- booleanbetrayal 9y agothis is the only thing preventing CasperJS / PhantomCSS from supporting Puppeteer, I think. will be cool to see this go in.
- ehsankia 9y agoIt's nice to have a uniform way across all operating systems, but more important than that, being able to take screenshot of specific elements makes it much nicer than you having to crop the image manually or try to get the perfect snipped screenshot. I assume this also handles screenshots that are larger than your display, which would be very hard with OS screen grab for elements that can't fit in a single screen.
- zspitzer 9y agoThey still haven't reverted the dropdown filtering UI for the console, the old style quick access toolbar, like the network panel. It used to be really useful, yet since the change, I barely use it anymore. There's a long thread about it here, but the chrome developers haven't really engaged with the community feedback https://groups.google.com/forum/#!topic/google-chrome-developer-tools/kH3FiDLlsFg%5B26-50%5D https://groups.google.com/forum/#!topic/google-chrome-develo... The dev tools console has also become a dumping ground for repeated browser warnings and the option to turn them off isn't even persistent.
- indigo0086 9y agoYup, worst decision ever. I’ve been using Firefox but performance drastically drops when debugging so I go back to using chrome. I just prefix my logging and filter.
- zspitzer 9y agoI filed a bug about that too, feel free to vote for it :) https://bugzilla.mozilla.org/show_bug.cgi?id=1389864 https://bugzilla.mozilla.org/show_bug.cgi?id=1389864
- bennettfeely 9y agoStarting to think maybe it would be good to have a "DevTools" lite, now that there are literally dozens of tabs and pages. Is there a shortcut to just bring up the console?
- ComputerGuru 9y ago> Is there a shortcut to just bring up the console? I think it depends on the last feature used, but F12 does that for me. You can also try ctrl+shift+i (opt+cmd+i on Mac, I think?)
- ehsankia 9y agoctrl+shift+j goes directly to console. I believe ctrl+shift+i goes to whatever tab you were at last, and ctrl+shift+c goes to the element tab and enables the element selector. I don't know if there's any other shortcuts but these are the one I use most often. You can also drag the various tabs to order them the way you like.
- kaycebasques 9y agoCorrect, Control+Shift+J (Windows, Linux) or Command+Option+J (Mac) opens DevTools and focuses the Console panel.
- bsimpson 9y agoWith DevTools open, Escape brings up the console.
- joshribakoff 9y agoCool but I really wish they'd add more keyboard shortcuts. Like ability to use arrows and keyboard to select a network request and replay it. Or to drill down a deeply nested json without having to make a series of precise mouse clicks
- wluu 9y agoI actually prefer the Firefox dev tools these days. One thing that I really like is the edit and resend functionality[0]. Quite useful when quickly testing API calls. I know you can use other tools in Chrome to do the same, but I like that it’s built in. Good to see improvements in the Chrome dev tools nonetheless! [0] https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor#Edit_and_Resend https://developer.mozilla.org/en-US/docs/Tools/Network_Monit...
- alt2501 9y agoI like Firefox too, but chrome still displays JSON objects in the console very nicely. I haven't found a good way to do this in FF yet. Do you know of a way?
- dzhiurgis 9y agoHey fellow HN'ers, I recently discovered you can select source in this (windows) terminal-like fashion by holding alt (i.e. https://imgur.com/a/XnCSd https://imgur.com/a/XnCSd). Does anyone know what is the purpose of this feature? I always disliked how difficult is to select something on windows cmd, this seems like anti-feature for me, but obviously I am missing something.
- mavidser 9y agoI've seen people use the same shortcut in sublime text to copy small code blocks (without copying the indentation).
- noway421 9y agomany text editors have that feature, while might be not that widely used or useful, it's still ported and implemented in many of them
- rasz 9y agocolumn mode, very useful
- petval 9y agoI continuously struggle with debugging aspx with embedded JavaScript. Breakpoints can't be set on any line and I still haven't figured out the logic why and when stepping through the highlighted line is never the one that is actually running. Even after expanding the code with the { } button. It's just simple JS so no code maps should be needed.