pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.6k stars 519 forks source link

Empty stack window in Lua 5.1 #1084

Closed Miksser closed 3 years ago

Miksser commented 3 years ago

Hey. I am using Windows 10 and installing Luaforwinodws with Lua 5.1.4.

When I try to use the debugger, it doesn't show me anything in the stack trace. At the same time, the breakpoints are working properly. I read the documentation, tried to change the cpath and path variables, but it didn't help.

Say please, can this be fixed somehow?

Open image

pkulchenko commented 3 years ago

@Miksser, what do you expect to see in the Stack window? I does show that the control is on line 5 in the main script, which is what you'd expect, no?

Miksser commented 3 years ago

sorry for long waiting. I expect to see variables and ENV like in lua 5.2 debugger. In Lua 5.1, the values of all variables are hidden =( lua 5.1 lua 5.2

pkulchenko commented 3 years ago

It's because those are global variable and are not part of the stack; only upvalues and local variables are. _ENV is part of the stack for Lua 5.2, but _G is not for Lua 5.1, hence the difference. You can add those values you are interested in to Watches to monitor.