Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I have Chrome DevTools open during the page load?

It's common I want to have the DevTools open while a page refreshes. Can I have the DevTools available to debug that page from the start?

like image 475
Paul Irish Avatar asked Mar 23 '23 06:03

Paul Irish


1 Answers

You can remote debug your own Chrome instance to get a full DevTools for every page. Start Chrome with the command line flag: --remote-debugging-port=9222

You then get a UI like:

enter image description here

From here you select which tab you'd like to debug and it'll open up the DevTools in an exclusive window for that page:

enter image description here

like image 145
Paul Irish Avatar answered Apr 30 '23 18:04

Paul Irish