You cannot open DevTools from code. Possible duplicate of this: http://stackoverflow.com/questions/16660325/open-safari-google-chrome-developer-tools-programmatically-from-javascript
– LennyOct 03 '15 at 07:53
3
You CANNOT open devtools with code. This is by design because it would be a security hole. Read the post I linked (where they ask the same question and get the same answer)
– LennyOct 03 '15 at 08:04
1
Possible duplicate of [Open Safari / Google Chrome developer tools programmatically from JavaScript](https://stackoverflow.com/questions/16660325/open-safari-google-chrome-developer-tools-programmatically-from-javascript)
– Mike GuthrieApr 04 '19 at 13:37