On Jun 15, 11:49 am, gozala <[email protected]> wrote:
> On Jun 15, 6:42 pm, John J Barton <[email protected]> wrote:
>
>
>
> > On Jun 15, 9:15 am, gozala <[email protected]> wrote:
...
> > I've heard this one and I've seen it in the Web kit 
> > videoshttp://code.google.com/p/fbug/issues/detail?id=768
>
> Very good, I see the issue and comments and I would really recommend
> to everyone who have not done it yet to actually give it a try. Video
> is very nice, but trying out will give much better idea on what people
> mean :)
>

We discussed this issue on the conf call today and Honza and I will
take a shot at it.

...
> > > - source URL's for evaled code works very rarely (with the same code
> > > sometimes it does sometimes it's not), for me and bunch of people I
> > > know, maybe it's just us...
>
> > If we had test cases we could fix it. All the cases for eval that I
> > have work. Do all of these cases work in Web inspector?
>
> I never had an issue with this in web inspector. Unfortunately test
> case is hard since as I said refresh usually helps sometimes not :(

In Firebug the first time you open a page you have to refresh always.
I regret our decision to not do this automatically.

> BTW I never managed to get something like this to work in FF, while in
> webkit it does.
>
> Try to eval in cmdline
> setTimeout(function(){b = Function('a = 5;\n//@sourceURL=test.js')},
> 0)

I did not know users want to debug command line injected code.

>
> I would expact to see test.js in scripts list, but I can't :( Of

If you replace Function with eval appropriately in the example you can
see it in the script list.

> course what I care is ability to debug modules which nowadays are
> often
> created by Function constructor

If you use "eval()" instead and show me a test case it can work. "new
Function" and "eval()" can give the same results, but my humongous
hack to force eval() to work in Firefox cannot handle new Function.

jjb

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