No Prompt in Firefox Browser Console?
Asked Answered
O

2

6

I'm using Firefox for Ubuntu, version 39.0. I'm trying to debug an add-on and would like to run some JavaScript under chrome privileges. According to this page I should be able to do this in the Browser Console.

If I click on Tools -> Web Developer -> Browser Console in the Firefox menu, I get the Browser Console:

enter image description here

Only problem is, I can't evaluate anything. My question is: where's the prompt? Apparently this window should have a prompt. Things I have tried:

  • Restarting Firefox with add-ons disabled (safe mode)
  • Starting Firefox as a sudo user

Any tips?

Obedience answered 28/7, 2015 at 13:11 Comment(3)
You have to enable developer preferences: developer.mozilla.org/en-US/Add-ons/…Unmindful
Legend, I set devtools.chrome.enabled to true and that was it. Submit an answer if you like and I'll mark it as accepted.Obedience
Awesome Sammy thanks for that specific preference share, I didn't know it was exactly that one.Unmindful
U
6

You have to enable developer preferences:

"Setting up an extension development environment" MDN page from

Thanks to your research it looks like it was the devtools.chrome.enabled preference.

Unmindful answered 29/7, 2015 at 3:47 Comment(0)
P
0

Hello To show firefox browser console log when the console is not showing in console log window please follow the below procedures

https://firefox-source-docs.mozilla.org/devtools-user/browser_console/index.html

NB: The Browser Console command line (to execute JavaScript expressions) is disabled by default. To enable it set the devtools.chrome.enabled preference to true in about:config, or set the “Enable browser chrome and add-on debugging toolboxes” (Firefox 40 and later) option in the developer tool settings.
Pizarro answered 25/1 at 16:17 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Mousebird

© 2022 - 2024 — McMap. All rights reserved.