Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3297

Make bsondump debug output more useful

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 544

      The bsondump debug output is too terse for detailed inspection of BSON files. It could use more info about the field types and values and maybe some ability to see the raw binary.

      For example, here's the bsondump output for a sample BSON document:

      ❯ bsondump --type=debug test.bson            
      --- new object ---
              size : 40
                      myString
                              type:    2 size: 20
                      myInt
                              type:   18 size: 15
      

      For comparison, the fq tool supports decoding BSON and outputs more detailed information with color:

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: