Skip to content

Cannot display "_G.package.loaded" value #446

Description

@madmaxoft

When I run my script in the MCServer interpreter ( https://github.com/mc-server/MCServer ) and it hits a breakpoint, there's no way to view the value of package or package.loaded. Instead of the expected table, the watch window shows this text:

"...PathFragment\\\ZeroBraneStudio\\lualibs/mobdebug/mobdebug.lua:178: invalid type in array indexing.\n     value is 'string'; 'number' expected.\n"

The same happens when trying to print the value in the Remote console window using =package.loaded command.
When running a script in the regular Lua interpreter, the value is displayed correctly, so this issue does depend on the interpreter.

Running ZBS commit e24ee26 on Windows 7 64-bit, although I remember seeing this issue earlier, perhaps a month or two back, so it's nothing new, I just didn't need it that much so I didn't report it.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions