Unfortunately, at the present time, there is no automated way to accomplish this task.
According to information found on the Chromium issues page
"We only allow explicit devtools opening."
This implies that users are required to manually open the inspector using either a keyboard shortcut or by selecting it from the menu options.
Please be advised: There is a potential workaround involving the use of a macro service capable of generating keyboard events (such as ctrl+shift+j
) and mouse clicks (
to right click and click inspect element
). Nevertheless, even with this solution, some level of manual intervention remains necessary. Essentially, any action that can be performed on a computer has the potential to be automated in some fashion through macros; however, delving into the specifics of how to set this up goes beyond the scope of this discussion.