Skip to content

Global variables do not seem to carry over to loaded modules #58

@yoshi1123

Description

@yoshi1123

Reproduce example:

file1.lua:

g = "global"
require("file2.lua")

file2.lua

print(g)

Running file.lua with Lua will print "global", but running file.lua in the debugger will print nil.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions