GetDebugId (Function): Difference between revisions

From Goodblox Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:
|arguments            = [[Integer]] ''scopeLength = 4''
|arguments            = [[Integer]] ''scopeLength = 4''
|returns              = [[String]] debugId
|returns              = [[String]] debugId
|description          = Returns a coded string of the object's DebugId used internally by Roblox.
|description          = Returns a coded string of the object's DebugId used internally by GoodBlox.
|object              = Global
|object              = Global
}}</onlyinclude>
}}</onlyinclude>

Revision as of 01:39, 22 September 2021

Locked: This item is locked. Attempting to use it will cause an error.


Function
Syntax GetDebugId( Integer scopeLength = 4 )
Returns String debugId
Description: Returns a coded string of the object's DebugId used internally by GoodBlox.
In Object: Global


Example

local function debugId(object, scopeLength)
   return object:GetDebugId(scopeLength)
end

print(debugId(workspace)) --> 39FA_12
print(debugId(workspace, 10)) --> 39FA2FEF4D_12
print(debugId(workspace, math.huge)) --> 12

DebugID

A debug ID is an ID used in debugging processes. It allows a debugger to read each instruction before an application processes it. All objects in GoodBlox act like processes and each run instructions (or 'code') that can be debugged if needed.