diff --git a/ent/entity.go b/ent/entity.go index e05f558..47dd8a6 100644 --- a/ent/entity.go +++ b/ent/entity.go @@ -20,5 +20,14 @@ func (e *Entity) Read(br bit.Reader) error { if err := fp.read(br, htree, e.Class); err != nil { return fmt.Errorf("unable to read entity: %v", err) } + for i := 0; i <= fp.hlast; i++ { + if fp.history[i][0] == 0 { + Debug.Printf("direct selection: %v", fp.history[i][1]) + Debug.Printf("field: %v", e.Class.Fields[fp.history[i][1]]) + } else { + Debug.Printf("child selection: %v (%v)", fp.history[i], + fp.history[i][1:fp.history[i][0]+2]) + } + } return nil }