Symbol "d" not in scope

i just wanted to test the “Add Watch” button






local d = 3

d = 5




in “My Watches” It says symbol “d” not in scope

I’m sorry, I’m confused, can you elaborate?

Watching is meant to be used during real-time debugging. You’re meant to use breakpoints with it, and it’ll update the value as you hit each breakpoint. When it says “Symbol “var” not in scope”, that means that at that current breakpoint, that variable is not assigned to anything, or as it says, not in the current scope.

Read more here.

i have already read this, but i did not notice in thr tetxt that it will only do it when there is a breakpoint

i added a breakpoint and still not working

The breakpoint must be placed on a line after the variable is updated.

no, i inserted line after but did not work anyways

Debugging in Roblox Studio is a nightmare…

  • Missing variables
  • Variables not in scope
  • Variables sometimes in scope
  • Call Stack Window usually only show one line, no trace of anything
  • Variables in Global Watch doesn’t work in My Watches
  • Missing variables in Global Watch

Can we please get a debugger that actually help debugging any time soon?

1 Like