Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9228841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:25:31+00:00 2026-06-18T05:25:31+00:00

Using the Add-on SDK’s cfx run command, is it possible to get it to

  • 0

Using the Add-on SDK’s cfx run command, is it possible to get it to log to Firebug’s console instead of the command line one from the main add-on code or content scripts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:25:32+00:00Added an answer on June 18, 2026 at 5:25 am

    You can use the undocumented property unsafeWindow. As its name implies, this is a BAD IDEA. But, as you are only using it for debugging everything should be fine. Please remove these statements when releasing your addon.

    unsafeWindow.console.log("Hello, firebug!");
    

    If you want to make all console calls go to firebug you can put the following in your content script.

    console = unsafeWindow.console;
    

    If you just want log

    console.log = unsafeWindow.console.log
    

    Note: When I was running this on a contentScriptWhen: "start" page-mod I noticed that Firebug hadn’t loaded into the console object yet. So if you are using contentScriptWhen: "start" you may need a slight delay before accessing the console.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to add buttons to the navigation bar using the IPhone SDK?
I am new to Firefox development and am using the Add-on SDK. I would
How to get the MD5 Fingerprint of the SDK Debug certificate.i am using eclipse
I am using the Flex SDK within visual studio and trying to dynamically add
From aspx page, I dynamically add paragraphs to a word document using OpenXml SDK.
I'm working on porting a Chrome extension to Firefox using the Firefox Add-on SDK.
I am coding an add-on using an existing SDK which has no webview-like component
How to add accessibility requirements to a swf created using mxml+flex sdk? I have
I'm developing a Firefox add-on using Add-on SDK. Up to now, I must close
I'm making a Firefox add-on using the Add-on SDK. I can't find a way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.