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

This is probably not too hard to implement, mainly the issue is how to
get rid of it nicely.

When you are breakpointed the command are evaluated in the context of
the breakpoint.

On Feb 11, 8:42 am, Boris Mizhen - 迷阵 <bo...@boriska.com> wrote:
> 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 firebug@googlegroups.com
To unsubscribe from this group, send email to 
firebug+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to