Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
"console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Mark  
View profile   Translate to Translated (View Original)
 More options 22 May 2008, 14:35
From: Mark <mark.cru...@gmail.com>
Date: Thu, 22 May 2008 06:35:13 -0700 (PDT)
Local: Thurs 22 May 2008 14:35
Subject: "console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
I'm developing a remote XUL application and use console.log()
extensively. Today I upgraded my Firebug 1.1 installation to 1.2b1 and
now get a "console is not defined" error whenever the code hits a
console.log() call.

Within Firebug I can manually enter "console = _firebug;" to get
things working again - but that doesn't persist through a page
reload.

Based on a search of this group I've also tried calling
window.loadFirebugConsole() on my page, but that gives a "not a
function" error. From what I've read it shouldn't be necessary on Fx3
anyway.

I've tried disabling all my extensions, but that had no effect. I've
also tried opening Firefox with just a single HTML page (rather than
my remote XUL app), then calling console.log() within the console
itself, but that also gave the "console is not defined" error.

Have I missed something else that I need to do to initialise the
console on Fx3? If not, has anyone else experienced this issue and
found a workaround?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John J Barton  
View profile   Translate to Translated (View Original)
 More options 22 May 2008, 15:38
From: John J Barton <johnjbar...@johnjbarton.com>
Date: Thu, 22 May 2008 07:38:50 -0700 (PDT)
Local: Thurs 22 May 2008 15:38
Subject: Re: "console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
In 1.2 the console is not added to the page unless you turn on Script
debugging.  Try that and let us know.

On May 22, 6:35 am, Mark <mark.cru...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark  
View profile   Translate to Translated (View Original)
 More options 22 May 2008, 16:04
From: Mark <mark.cru...@gmail.com>
Date: Thu, 22 May 2008 08:04:23 -0700 (PDT)
Local: Thurs 22 May 2008 16:04
Subject: Re: "console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
Ah, that did the trick, but does leave me in a catch-22 situation: I'd
disabled script debugging because it was breaking the wizards in my
app. I filed this as an issue a little earlier today:

http://code.google.com/p/fbug/issues/detail?id=704

Mark

On May 22, 3:38 pm, John J Barton <johnjbar...@johnjbarton.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philip  
View profile   Translate to Translated (View Original)
 More options 22 May 2008, 19:06
From: Philip <sa...@altmuehlnet.de>
Date: Thu, 22 May 2008 11:06:28 -0700 (PDT)
Local: Thurs 22 May 2008 19:06
Subject: Re: "console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
It doesn't work for me. I've enabled the debugger for localhost but
there's still no console available. I'm using Firefox 2.0.0.14.

What can I do?

On May 22, 4:38 pm, John J Barton <johnjbar...@johnjbarton.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John J Barton  
View profile   Translate to Translated (View Original)
 More options 22 May 2008, 19:19
From: John J Barton <johnjbar...@johnjbarton.com>
Date: Thu, 22 May 2008 11:19:30 -0700 (PDT)
Local: Thurs 22 May 2008 19:19
Subject: Re: "console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
Philip, here are some choices:
  Use FF3rc1 + Firebug 1.2.  This is the combination we are focused on
for now.
  Use FF2 + Firebug 1.1.
  Use FF2 + Firebug 1.2 and add loadFirebugConsole() before you use
the console.
We will go back to FF2 with Firebug 1.2, but we can't do the same
solution for the console in both FF2 and FF3 I think.

On May 22, 11:06 am, Philip <sa...@altmuehlnet.de> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Odvarko  
View profile   Translate to Translated (View Original)
 More options 23 May 2008, 12:37
From: Jan Odvarko <odva...@gmail.com>
Date: Fri, 23 May 2008 04:37:53 -0700 (PDT)
Local: Fri 23 May 2008 12:37
Subject: Re: "console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
> In 1.2 the console is not added to the page unless you turn on Script
> debugging.

What about to print a message that says it directly to the user within
the console?

Honza

On May 22, 4:38 pm, John J Barton <johnjbar...@johnjbarton.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John J Barton  
View profile   Translate to Translated (View Original)
 More options 23 May 2008, 16:32
From: John J Barton <johnjbar...@johnjbarton.com>
Date: Fri, 23 May 2008 08:32:48 -0700 (PDT)
Local: Fri 23 May 2008 16:32
Subject: Re: "console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
Actually I had another idea to suggest that also would address another
posters issue with 1.2.

What if we made the Console tabs also activatible?

By default three tabs would be "off" Console, Script, Net.

Console would control
  1) injection of console object in page, (not script panel)
  2) error message tracking (current always on)
  3) XMLHTTPRequest logging (controlled by Console->options).

  + Reach the zero-overhead goal of 1.2 (we miss on XMLHTTPRequest
logging and error tracking now)
  + console.log() without script panel activation
  + direct visibility of optional state (gray tab names mean off)
  + fine control over performance
  - now three controls for full firebug enable, tedious for those who
want it all. (which is why we rejected the idea before).
  - more work to code it.

To address three-controls issue we could introduce an enablement-
linking preference that remembers the set of enabled panels for a user
and restore that set when any panel from the set is enabled. This is
aimed a habitual use, not exploratory use. For examples:

   John enables Console, Script, and Net on page A. Later he opens
page B and enables Script. The other two are enabled also.

   Sue enables  Console and Net on page C. Later she opens page D and
enables Console. Net will also be enabled. She disables Net. Later she
opens page E and enables Console. No other enablement.

Is it clear? Does it make sense?

On May 23, 4:37 am, Jan Odvarko <odva...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark  
View profile   Translate to Translated (View Original)
 More options 23 May 2008, 16:53
From: Mark <mark.cru...@gmail.com>
Date: Fri, 23 May 2008 08:53:49 -0700 (PDT)
Local: Fri 23 May 2008 16:53
Subject: Re: "console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
I like the idea of having the Console activatible independently of the
Script tab, but I think the linking preference is over complicating
matters. How about simply being able to switch any/all of them on or
off from the "En/Disable" menu of any one of them.

In other words, whichever tab is currently showing has its own "Enable
this for domain" button as it does now, but the "Disabled" menu would
contain the following:

* Enable console for domain
* Enable debugger for domain
* Enable monitor for domain
----------------------
* Enable all for domain
* Disable all for domain

The first three would either have checkmarks and/or change their text
to "Disable blah for domain" when they're enabled. The bottom options
just enable or disable all three options at once.

This way a developer can enable any combination of panels they wish,
but without the need to actually switch between the panels to do so.
In the case of one or three panels needing to be enabled, one visit to
the menu will do it. For two panels it needs two visits to the menu.
In either case it's no worse (and probably better) than the current
method of visiting two panels to activate both Script and Net.

On May 23, 4:32 pm, John J Barton <johnjbar...@johnjbarton.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John J Barton  
View profile   Translate to Translated (View Original)
 More options 23 May 2008, 17:20
From: John J Barton <johnjbar...@johnjbarton.com>
Date: Fri, 23 May 2008 09:20:29 -0700 (PDT)
Local: Fri 23 May 2008 17:20
Subject: Re: "console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
A variation of this idea would not use the pull down menu (leave it as
is), but put multiple buttons on the Disabled Panel that comes up when
the script/net/console tab is disabled but selected.  Then enable all
or two or one would be "select a disabled panel", click a button.

On May 23, 8:53 am, Mark <mark.cru...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark  
View profile   Translate to Translated (View Original)
 More options 23 May 2008, 17:38
From: Mark <mark.cru...@gmail.com>
Date: Fri, 23 May 2008 09:38:22 -0700 (PDT)
Local: Fri 23 May 2008 17:38
Subject: Re: "console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
How would multiple buttons work though?

You go to the Console tab, click "Enable Console" button... and then
the remaining buttons get replaced with the content of the console.
You would either have to ensure that the current tab is the last
button you click, or rather than buttons you would need checkboxes and
an "Apply" button.

By using the menu things are kept simpler for people who just want to
enable one panel (probably the Console) as they never need to see the
complexity, they just click the one button they can see.

But whatever the UI, I certainly think that having the console.*()
calls tied to enabling the Console panel rather than the Script panel
makes a lot of sense.

On May 23, 5:20 pm, John J Barton <johnjbar...@johnjbarton.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Odvarko  
View profile   Translate to Translated (View Original)
 More options 26 May 2008, 10:18
From: Jan Odvarko <odva...@gmail.com>
Date: Mon, 26 May 2008 02:18:23 -0700 (PDT)
Local: Mon 26 May 2008 10:18
Subject: Re: "console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
I also welcome the idea of having activable Console panel!
I was considering it too and it looks like the logical way that
nicely solves all the mentioned problems with Console tab.

As far as the problem of "Enable all panels at once" is concerned,
I like Mark's proposal to have a menu with options like as follows:

* Enable console for domain
* Enable debugger for domain
* Enable monitor for domain
----------------------
* Enable all for domain
* Disable all for domain

At the same time, I agree with John that these options don't have to
be
necessarily part of the "Disable" menu. The power of this menu is the
simplicity
(it's just "enable for the site" and "disable") and further, the menu
is attached to
a specific panel. So, e.g. in case of the Net panel, it could be mess
if there are
options related to the other panels.

However it makes excellent fit, if the menu would be a context menu
attached to the FB's tab bar. In such a case the user could enable/
disable any panel by just right clicking on its tab an choosing enable
from its context menu - without necessity to actually activate the
tab. And of course, the plus would be additional items like "Enable
all for domain" and "Disable all for domain".

I also think that the menu doesn't have to show list of all the
"activable" tabs all the time - only the clicked one could be
displayed. So, the menu would be like as follows (in the case when
disabled Console tab would be right-clicked):

* Enable Console for domain
----------------------
* Enable all for domain
* Disable all for domain

Sure, "Enable console for domain" would change to "Disable console for
domain" if Console is currently enabled.

What do you think?

Honza

On May 23, 6:38 pm, Mark <mark.cru...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Odvarko  
View profile   Translate to Translated (View Original)
 More options 26 May 2008, 11:25
From: Jan Odvarko <odva...@gmail.com>
Date: Mon, 26 May 2008 03:25:41 -0700 (PDT)
Local: Mon 26 May 2008 11:25
Subject: Re: "console is not defined" with Firebug 1.2.0b1 and Fx3.0 RC1
One more addition. I have already proposed (in another discussion,
but it's related to the the Console too) to have another option
in "Options" menu that would make possible to enable-always
specific activable tab.

So, if such an option would be checked for the Console panel -
it would be enabled by default for every site.

Opinions?

Honza

On May 26, 11:18 am, Jan Odvarko <odva...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google