MAXScript Debugger >

# Debugger variables for Functions

Each function exposesa special owner variable that points to the owner of the function, if any.

An owner can be a rollout, scripted plugin, rcmenu, mouse tool, macroscript, or anonymous code block.

If a function is defined in the global scope, it does not have an owner.

If it does have an owner, and the owner is not an anonymous code block, another debugger variable with the same name as the owner is created. Both of these variables contain the owner value.

These variables are not true local variables, and arenot accessible in the function.

If the function declares a variable with the name 'owner', the debugger 'owner' variable will not be created.

#### See Also

- The MAXScript Debugger

- Interface: MXSDebugger