Debugging AJAX-loaded scripts

View: New views
7 Messages — Rating Filter:   Alert me  

Debugging AJAX-loaded scripts

by nkiesel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

we sometimes load additional HTML including Javascript using an AJAX
request.  How can I add a breakpoint to functions in this loaded code?
The "Script" dropdown does not contain it, the Search box does not
find it.

I even added a call to a small helper function that is loaded in the
initial page and set a breakpoint in that helper.  The breakpoint gets
hit, but when clicking "next" or "return from that helper function
firebug does not stop in the caller.  The stack also does not seem to
work for selecting the caller.

I assume I must just not getting it, so could someone please enlighten
me?

Best,
  Norbert

--

You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@....
To unsubscribe from this group, send email to firebug+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/firebug?hl=en.



Re: Debugging AJAX-loaded scripts

by John J Barton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I suggest you install Firebug 1.5b2 and let us know if it still does
not work.

jjb

On Nov 6, 8:18 am, nkiesel <nkie...@...> wrote:

> Hi,
>
> we sometimes load additional HTML including Javascript using an AJAX
> request.  How can I add a breakpoint to functions in this loaded code?
> The "Script" dropdown does not contain it, the Search box does not
> find it.
>
> I even added a call to a small helper function that is loaded in the
> initial page and set a breakpoint in that helper.  The breakpoint gets
> hit, but when clicking "next" or "return from that helper function
> firebug does not stop in the caller.  The stack also does not seem to
> work for selecting the caller.
>
> I assume I must just not getting it, so could someone please enlighten
> me?
>
> Best,
>   Norbert

--

You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@....
To unsubscribe from this group, send email to firebug+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/firebug?hl=en.



Re: Debugging AJAX-loaded scripts

by nkiesel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tried that, but with firebug-1.5X.0b2.xpi my firefox 3.5.4 crashes
during startup.
I disabled all other add-ons, but still crashes.
I manged to load it with firebug disabled, but then it crashes as soon
as I select
"Enable All Panels".

This is firefox 3.5.4 (rebranded as iceweasel) running under Debian
Sid/Unstable
on AMD64.

Is there a non-tracing version available I could try?

Best,
  Norbert

defiant:~/work/TBD/dev% iceweasel -g
GNU gdb (GDB) 7.0-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/
gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/iceweasel/firefox-bin...(no debugging
symbols found)...done.
(gdb) r
Starting program: /usr/lib/iceweasel/firefox-bin -a iceweasel
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffe6af2910 (LWP 26017)]
[New Thread 0x7fffe62f1910 (LWP 26018)]
[New Thread 0x7fffe5af0910 (LWP 26019)]
[New Thread 0x7fffe3fff910 (LWP 26020)]
[New Thread 0x7fffe2bff910 (LWP 26021)]
[Thread 0x7fffe2bff910 (LWP 26021) exited]
[New Thread 0x7fffe2bff910 (LWP 26022)]
[New Thread 0x7fffddfd2910 (LWP 26023)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4db2c22 in ?? () from /usr/lib/libmozjs.so.2d
(gdb) bt
#0  0x00007ffff4db2c22 in ?? () from /usr/lib/libmozjs.so.2d
#1  0x00007ffff61d11b4 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#2  0x00007ffff61d78ce in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#3  0x00007ffff61d7ba0 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#4  0x00007ffff61d02fd in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#5  0x00007ffff4d715f9 in ?? () from /usr/lib/libmozjs.so.2d
#6  0x00007ffff4d7ccc1 in js_Invoke () from /usr/lib/libmozjs.so.2d
#7  0x00007ffff4d7d016 in ?? () from /usr/lib/libmozjs.so.2d
#8  0x00007ffff4d4479d in JS_CallFunctionValue () from /usr/lib/
libmozjs.so.2d
#9  0x00007ffff5b601f6 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#10 0x00007ffff5b607d3 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#11 0x00007ffff62f1717 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#12 0x00007ffff5b65890 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#13 0x00007ffff5b502fa in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#14 0x00007ffff5b44d22 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#15 0x00007ffff5b42a03 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#16 0x00007ffff5b55378 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#17 0x00007ffff632a862 in NS_InvokeByIndex_P () from /usr/lib/
iceweasel/xulrunner/libxul.so
#18 0x00007ffff5b62963 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#19 0x00007ffff5b6a6dc in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#20 0x00007ffff4d7ccb7 in js_Invoke () from /usr/lib/libmozjs.so.2d
#21 0x00007ffff4d6da98 in ?? () from /usr/lib/libmozjs.so.2d
#22 0x00007ffff4d7ccc1 in js_Invoke () from /usr/lib/libmozjs.so.2d
#23 0x00007ffff5b5fc02 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#24 0x00007ffff632b439 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#25 0x00007ffff632a8e7 in ?? () from /usr/lib/iceweasel/xulrunner/
libxul.so
#26 0x00007fffe227db20 in ?? ()
#27 0x00007fffdd0471f0 in ?? ()
#28 0x00007fffe227db20 in ?? ()
#29 0x00007fffdd0471f0 in ?? ()
#30 0x00007fffe1e11078 in ?? ()
#31 0x0000000000000006 in ?? ()
#32 0x0000000000000000 in ?? ()
(gdb) q

On Nov 6, 8:28 am, John J Barton <johnjbar...@...> wrote:
> I suggest you install Firebug 1.5b2 and let us know if it still does
> not work.
>
> jjb
>

--

You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@....
To unsubscribe from this group, send email to firebug+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/firebug?hl=en.



Re: Debugging AJAX-loaded scripts

by John J Barton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Nov 6, 9:24 am, nkiesel <nkie...@...> wrote:

> Tried that, but with firebug-1.5X.0b2.xpi my firefox 3.5.4 crashes
> during startup.
> I disabled all other add-ons, but still crashes.
> I manged to load it with firebug disabled, but then it crashes as soon
> as I select
> "Enable All Panels".
>
> This is firefox 3.5.4 (rebranded as iceweasel) running under Debian
> Sid/Unstable
> on AMD64.

That crash has been reported. It is in code without an owner and on a
platform not widely used.

>
> Is there a non-tracing version available I could try?

I've asked about a workaround for the crash. Every javascript debugger
will crash this version of Firefox.

jjb

--

You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@....
To unsubscribe from this group, send email to firebug+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/firebug?hl=en.



Re: Debugging AJAX-loaded scripts

by John J Barton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Nov 6, 9:24 am, nkiesel <nkie...@...> wrote:

> Tried that, but with firebug-1.5X.0b2.xpi my firefox 3.5.4 crashes
> during startup.
> I disabled all other add-ons, but still crashes.
> I manged to load it with firebug disabled, but then it crashes as soon
> as I select
> "Enable All Panels".
>
> This is firefox 3.5.4 (rebranded as iceweasel) running under Debian
> Sid/Unstable
> on AMD64.

I understand that you can install 32bit Firefox for linux, and that
will probably work.
jjb

--

You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@....
To unsubscribe from this group, send email to firebug+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/firebug?hl=en.



Re: Debugging AJAX-loaded scripts

by Marcus Better :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John J Barton wrote:
> That crash has been reported. It is in code without an owner and on a
> platform not widely used.

"Widely used" is a relative term, but it appears to affect all 64-bit Linux
systems (confirmed for Fedora, Debian and Ubuntu). For Debian, amd64 is the
second most popular architecture and is steadily catching up to i386.

Cheers,

Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkr5PlkACgkQXjXn6TzcAQlH4ACeL1fO4PEE6CvlJGTBBMF3sJiO
IjkAoKdvQ7v8yGjM4NkTkEKo+GmizhFC
=DKeG
-----END PGP SIGNATURE-----


--

You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@....
To unsubscribe from this group, send email to firebug+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/firebug?hl=.



Re: Debugging AJAX-loaded scripts

by John J Barton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Nov 10, 2:20 am, Marcus Better <mar...@...> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> John J Barton wrote:
> > That crash has been reported. It is in code without an owner and on a
> > platform not widely used.
>
> "Widely used" is a relative term, but it appears to affect all 64-bit Linux
> systems (confirmed for Fedora, Debian and Ubuntu). For Debian, amd64 is the
> second most popular architecture and is steadily catching up to i386.

There's no point in explaining this to me, this is a Firefox bug, we
cannot fix it.

And just to repeat, the 32 bit version of Firefox runs on these
machines and does not crash.

jjb

--

You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@....
To unsubscribe from this group, send email to firebug+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/firebug?hl=.