Skip to content

ref-loop protection is misleading #82

Description

@ildar

The following snippet

local e = {{1},{2}}
local t = {}

table.insert(t, { e[1],e[2] })
table.insert(t, { e[1],e[2] })

print('>>>', t[2][1], t[2][2])
print (require('mobdebug').line(t) )

shows that t[2] is ok but mobdebug is showing {nil,nil}.
I suggest it's a kind of ref-loop protection but it's quite misleading. I suggest it show ref without expanding it.

This bug is found in ZBS quick watch.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions