Firefox / Chrome debugger - automatically opens

I am working on an application and I need to run chrome / firefox with dev tools running. Does anyone know if there is a way to set tools to open on new tabs?

+5
source share
3 answers

Unfortunately, this is not possible in Chrome DevTools right now (also see Automatically open Chrome Developer Tools when opening a new tab / new window )

Not sure if Firefox is at the moment, but I could not find anything that could lead to a positive response.

0
source

In early 2016, Chrome added the option "Automatically open DevTools for pop-ups." I see this option in Chrome 51.

Open DevTools Press F1 to open the settings. Scroll to the end, and the parameter is in the "DevTools" section

+5
source

For Firefox:

You can use the --devtools command line --devtools ( introduced in Firefox 45 ) to launch Firefox with the developer panel open. This works with or without a URL to open.

Note that this does not work when the call opens a new tab in an already running instance of Firefox (the default behavior if Firefox is already running). If you already have an instance, you need to start Firefox with the --no-remote flag. In this case, you will also need -P to specify an alternative profile to start with, since the default profile is usually used.


However --devtools applies only to the window / tab that is opened at startup. It seems that there is no way to automatically open the developer tools in new windows / tabs opened later, as in Chrome.

+2
source

Source: https://habr.com/ru/post/1212356/


All Articles