Debugging dynamically downloaded js

25 views
Skip to first unread message

Sinsedrix

unread,
Nov 12, 2010, 4:28:14 AM11/12/10
to Firebug
Hi,
I am trying to debug a javascript file which is loaded by an ajax
call.
This kind of file does not appear in Script tab selector so I cannot
put a break point in it.
I tried to navigate along the call stack but when I click on a
function called in the new file, nothing happens. There is just a tool
tip "(invalid frame; did Firebug susend?)". I would say "no" but where
is my js file ?
Could anyone help me please ?

Honza (Jan Odvarko)

unread,
Nov 12, 2010, 4:58:10 AM11/12/10
to Firebug
Verify that you have selected "all" or "eval" in the menu that is on
the Script panel toolbar (just before the file selector menu). This
menu is used for filtering scripts available in the file selector.

Honza

sinsedrix

unread,
Nov 12, 2010, 5:12:47 AM11/12/10
to fir...@googlegroups.com
I already did it. Only first loaded javascript files or pieces are available.

2010/11/12 Honza (Jan Odvarko) <odv...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to fir...@googlegroups.com.
To unsubscribe from this group, send email to firebug+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/firebug?hl=en.


Honza (Jan Odvarko)

unread,
Nov 12, 2010, 5:58:35 AM11/12/10
to Firebug
What version of Firebug, Firefox do you use?
Do you have an online page that I could try to load to see the problem
on may machine?

Honza

On Nov 12, 11:12 am, sinsedrix <sinsed...@gmail.com> wrote:
> I already did it. Only first loaded javascript files or pieces are
> available.
>
> 2010/11/12 Honza (Jan Odvarko) <odva...@gmail.com>
>
> > Verify that you have selected "all" or "eval" in the menu that is on
> > the Script panel toolbar (just before the file selector menu). This
> > menu is used for filtering scripts available in the file selector.
>
> > Honza
>
> > On Nov 12, 10:28 am, Sinsedrix <sinsed...@gmail.com> wrote:
> > > Hi,
> > > I am trying to debug a javascript file which is loaded by an ajax
> > > call.
> > > This kind of file does not appear in Script tab selector so I cannot
> > > put a break point in it.
> > > I tried to navigate along the call stack but when I click on a
> > > function called in the new file, nothing happens. There is just a tool
> > > tip "(invalid frame; did Firebug susend?)". I would say "no" but where
> > > is my js file ?
> > > Could anyone help me please ?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Firebug" group.
> > To post to this group, send email to fir...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > firebug+u...@googlegroups.com<firebug%2Bunsu...@googlegroups.com>
> > .

sinsedrix

unread,
Nov 12, 2010, 6:18:44 AM11/12/10
to fir...@googlegroups.com
Firefox: 3.6.12
Firebug: 1.5.4
I cannot give you an online page since I am working on a intranet site.
Maybe I should build a quick example online (is there a free space to do it ?).
I do not think I am the first to have this problem with ajax loaded javascript files...

2010/11/12 Honza (Jan Odvarko) <odv...@gmail.com>
What version of Firebug, Firefox do you use?
To unsubscribe from this group, send email to firebug+u...@googlegroups.com.

Honza (Jan Odvarko)

unread,
Nov 12, 2010, 6:24:45 AM11/12/10
to Firebug
On Nov 12, 12:18 pm, sinsedrix <sinsed...@gmail.com> wrote:
> Firefox: 3.6.12
> Firebug: 1.5.4
> I cannot give you an online page since I am working on a intranet site.
> Maybe I should build a quick example online (is there a free space to do it
> ?).
You can, report a new issue here
http://code.google.com/p/fbug/issues/list

and attach the html file. Don't forget to provide a description what
to do in order to reproduce the problem. Thanks!

Honza

sinsedrix

unread,
Nov 12, 2010, 2:32:29 PM11/12/10
to fir...@googlegroups.com
Here is it:
http://code.google.com/p/fbug/issues/detail?id=3648

Help please :'(

2010/11/12 Honza (Jan Odvarko) <odv...@gmail.com>
On Nov 12, 12:18 pm, sinsedrix <sinsed...@gmail.com> wrote:

--

John J Barton

unread,
Nov 13, 2010, 11:45:20 AM11/13/10
to Firebug
I guess I should have asked if you were using jQuery.

This looks like issue 2912
http://code.google.com/p/fbug/issues/detail?id=2912

Other similar reports
http://code.google.com/p/fbug/issues/list?q=label:jQueryScript

The cause is a Mozilla bug, either of these:
https://bugzilla.mozilla.org/show_bug.cgi?id=566446
https://bugzilla.mozilla.org/show_bug.cgi?id=449464

According to one of the issues you can work around this Mozilla bug by
jQuery.ajax({
url: elem.src,
async: false,
dataType: "script",
success : function(data, textStatus, xhr){
eval(data);
}
});

jjb

On Nov 12, 11:32 am, sinsedrix <sinsed...@gmail.com> wrote:
> Here is it:http://code.google.com/p/fbug/issues/detail?id=3648
>
> Help please :'(
>
> 2010/11/12 Honza (Jan Odvarko) <odva...@gmail.com>
>
> > On Nov 12, 12:18 pm, sinsedrix <sinsed...@gmail.com> wrote:
> > > Firefox: 3.6.12
> > > Firebug: 1.5.4
> > > I cannot give you an online page since I am working on a intranet site.
> > > Maybe I should build a quick example online (is there a free space to do
> > it
> > > ?).
> > You can, report a new issue here
> >http://code.google.com/p/fbug/issues/list
>
> > and attach the html file. Don't forget to provide a description what
> > to do in order to reproduce the problem. Thanks!
>
> > Honza
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Firebug" group.
> > To post to this group, send email to fir...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > firebug+u...@googlegroups.com<firebug%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages