try
foo = 2;
The problem here is that each command line invocation is a new scope.
Its like
{var foo = 2;}
{foo}


jjb

On Jan 8, 10:18 am, n8 <[email protected]> wrote:
> Can't find a proper place to file this bug.  But...
>
> Steps to reproduce:
> 1) Install Firebug 1.3 in Firefox 3.0
> 2) Browse to any page, enable Firebug and Firebug console.
> 3) In the console type "var foo = 2;" (without the quotes). Should
> produce no error message, or return anything.
> 4) Reference "foo" by just typing "foo" in the console or call
> "console.log(foo)" and note the Exception thrown:
>
> error => ReferenceError
> message => foo is not defined
> stack =>
> "("with(_FirebugCommandLine){foo};")@http://docs.jquery.com/
> Discussion#Contacting_a_Mailing_List:65\n("with(_FirebugCommandLine)
> {foo};")@http://docs.jquery.com/Discussion#Contacting_a_Mailing_List:
> 65\n_firebugEvalEvent([object Event])@http://docs.jquery.com/
> Discussion#Contacting_a_Mailing_List:54\n"
>
> There also seems to be an issue with Firebug interfering with external
> js variables, only when the Firebug Console is loaded.  It's unclear
> to me if the interference issue is the same issue as the bug I've
> described above.  For now I've had to revert to 1.2.x until these
> issues are resolved.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to