问题
Is there a way to undock the sources tab using Chrome developer tools? If I had 3 monitors, I would like:
- Webpage to be on monitor 1
- Elements tab to be displayed on monitor 2
- Sources tab to be shown on monitor 3
回答1:
Open several devtools tabs for the same target tab and choose a different view in each one.
Preparations:
- exit Chrome by using the "Exit" command in the browser menu
- run Chrome with
--remote-debugging-port=9222
command line- you can use any number in 1024-65535 range, 9222 is the default, just make sure it's not used by another program (there are tools to view open ports);
- edit the Chrome shortcut in your OS/launcher and always use it to start Chrome;
Usage:
- in Chrome open
localhost:9222
(the port number is the one you've specified in the command line) - click the entry for your target tab
- move the tab to another display
Repeat as many times as needed.
来源:https://stackoverflow.com/questions/54927834/chrome-developer-tools-undock-sources-tab