jbreams / mongo_gdb

A set of gdb pretty printers for objects in the MongoDB source code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A set of gdb pretty printers for objects in the MongoDB source code.

If you find the need to bypass the printers and look at the raw fields, use
the /r flag to print.

To use add the following lines to your .gdbinit, adjusting the path as needed:

python
import sys
import os
try:
    sys.path.insert(0, os.path.expanduser('~/10gen/mongo_gdb/'))
    import mongo_printer
    mongo_printer.register_mongo_printers()
except Exception:
    print "Error loading mongo_printer"
    pass
end

About

A set of gdb pretty printers for objects in the MongoDB source code.


Languages

Language:Python 100.0%