and you'll get no echo of a's value for either statement.
--b
var a = 1; a;
then the console prints
>>> var a = 1; a;
1
If I type
var a = 1;
it says:
>>> var a = 1;
Do you think this is not correct?
Separately about:blank cannot evaluate the command line input. It
gives an error that is then filtered out of the view because of the
problem above. So it looks like nothing happens.
On Sep 14, 11:30 pm, John J Barton <johnjbar...@johnjbarton.com>
wrote:
The error message fix will be in b2 when it goes out.
Each command line evaluation is independent so variables introduced in
one run are not visible to the next run. If you did
window.b = 1;
then later
window.b;
it would print the value '1'.
Separately about:blank cannot evaluate the command line input. It
gives an error that is then filtered out of the view because of the
problem above. So it looks like nothing happens.
If you use Console->Options->LargerCommandLine, then the lines you
type do not disappear every time you hit enter. You can put multiple
statements in the box and you can re-evaluate them without thinking
about what you did earlier. You don't have to hang things off
'window'.
The small (single line) command line could be numbered and add to the
sandbox. That way the behavior you are used to from 1.0 would
continue.
The about:blank is related, it gives
"evalInSandbox FAILS Permission denied to get property
Window.__scope__"
where __scope__ is something Firebug uses to get into the window. I
don't know why this happens.
On Sep 17, 7:37 am, "Ben Lowery" <blow...@gmail.com> wrote:
On Sep 17, 11:30 pm, John J Barton <johnjbar...@johnjbarton.com>
wrote:
commandLine.evaluate FAILS: Components.utils.Sandbox evalInSandbox
FAILS TypeError: win.__scope__ has no properties
Using Firebug 1.1.0b2 on Firefox 2.0.0.7
Basically the the console doesn't work at all...
On Sep 15, 11:53 am, John J Barton <johnjbar...@johnjbarton.com>
http://extjs.com/playpen/ext-2.0-dev5/examples/feed-viewer/view.html
We need to find a very small example that shows the problem.
John.
OK, only on the pages I work on (of course!). I found an example for
you that is public though:
http://extjs.com/playpen/ext-2.0-dev5/examples/feed-viewer/view.html
On Sep 27, 3:22 pm, SteveR wrote:
> if I type anything in the console, all I get is
>
> commandLine.evaluate FAILS: Components.utils.Sandbox evalInSandbox
> FAILS TypeError: win.__scope__ has no properties
>
> Using Firebug 1.1.0b2 on Firefox 2.0.0.7
>
> Basically the the console doesn't work at all...
>
> On Sep 15, 11:53 am, John J Barton
> wrote:
>
> > Ah, I understand. It just prints 'a' because of the bug in failing to
> > print command line error messages. In my version it now prints:>>> a;
>
> > a is not defined
> > Each command line evaluation is independent so variables introduced in
> > one run are not visible to the next run. If you did
> > window.b = 1;
> > then later
> > window.b;
> > it would print the value '1'.
>
> > The error message fix will be in b2 when it goes out.
>
> > On Sep 14, 10:18 pm, paan wrote:
>
> > > Yes, those are correct but if I type>>> a
> > > after type
> > > >>> var a = 1;
> > > console print
> > > >>> a
>
> > > It just repeat my code instead of print value of 'a'
>
> > > On Sep 14, 11:30 pm, John J Barton
> > > wrote:
>
> > > > If I type into the command line
>
> > > > var a = 1; a;
>
> > > > then the console prints
>
> > > > >>> var a = 1; a;
>
> > > > 1
>
> > > > If I type
>
> > > > var a = 1;
>
> > > > it says:
>
> > > > >>> var a = 1;
>
> > > > Do you think this is not correct?
>
> > > > On Sep 14, 4:50 am, paan wrote:
>
> > > > > I upgrade firebug to 1.1b because it support eval debugging. But in
> > > > > command line, I can't declare variable even as simple as "var a = 1".
> > > > > Should I report a bug?
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.