John thank you for reply.

>> - have a button that would switch console's context to the window of
>> currently highlighted element (analogous to 'inspect' button for html)
>>   so that expression is evaluated with(selected window). It could work
>> as on-time switch or could follow the selection
>
> cd(window) changes the context of the command line to 'window'.
Great!  I guess I should have read the docs :)

What I really want to do is cd(getWindow($1))

I suppose there is a way to supply a library of utility functions to
be loaded by firebug?

>> - in debug mode (on a breakpoint) be able to execute a command in the
>> context of the current function that is stopped.
>>   not sure if with() will work in that context, but maybe at least
>> modify variables easily from console...
>>
> expressions entered in the Watches panel are evaluated in the context
> of the breakpointed function.
Yes, but sometimes it is much more convenient to use command line.
Like use command history to modify function's local variable while
stopped at the breakpoint.

Other examples
 - modify $1's attributes without clicking on them, even better if I
can do this in HTML view.
 - issue a command while in the Net tab and watch the requests without
switching tabs.

I find myself constantly switching between tabs while debugging...

Would it be possible to have command line available in all tabs (HTML,
Script, Net)?
What about having the command line evaluate commands in the context of
the breakpointed function?

Thank you again :)

Regards,
Boris

--~--~---------~--~----~------------~-------~--~----~
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