Jim Blandy
unread,Feb 27, 2013, 12:56:16 PM2/27/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?