Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Enabling JS GDB pretty-printers for the browser

14 views
Skip to first unread message

Jim Blandy

unread,
Feb 27, 2013, 12:56:16 PM2/27/13
to dev-tech-js-en...@lists.mozilla.org
How have the GDB pretty-printers been working out, for those of you who
debug JS C++ on Linux?

While the Mozilla source tree includes GDB pretty-printers for
JavaScript types (see js/src/gdb/README) since December 2012, GDB does
not automatically load them when debugging a program that uses
libxul.so. So people debugging browser C++ don't get them unless they
take magic steps to turn them on. That was a deliberate decision, made
when the pretty-printers first landed: we were concerned that the
pretty-printers were relatively young code, and that enabling them for
pretty much every developer debugging Mozilla C++ code would mean that
any problems would have a wide impact.

But the pretty-printers have been enabled by default for the
SpiderMonkey shell and test programs for a few months now. We've fixed a
few problems, but I think, overall, they've been okay.

They're working out okay for me, but the author often has a different
experience of his code than others do; how has it been for you? Is it
valuable enough to inflict on everyone else, or too flaky to be worthwhile?

Jim Blandy

unread,
Feb 27, 2013, 1:06:33 PM2/27/13
to dev-tech-js-en...@lists.mozilla.org
I've filed Bug 845888
<https://bugzilla.mozilla.org/show_bug.cgi?id=845888> for this question.
0 new messages