#globalThis doesn't seem to register objects in debugger at VSCode

2 messages · Page 1 of 1 (latest)

jaunty bison
#

For some reason I can't get globals to register for vscode debugger. Code example posted as image.
if there's a way to do this, would be nice so i could debug maps and players and such at runtime :)

gusty geyser
#

The error mentions global.tmc.admins, not globalThis.tmc..., so you might want to do something like ((globalThis || global) as any).tmc = tmc;