GetDebugId (Function): Difference between revisions

From Goodblox Wiki
Jump to navigationJump to search
(created the page)
 
mNo edit summary
Line 3: Line 3:
<onlyinclude>{{Function|
<onlyinclude>{{Function|
name                  = GetDebugId
name                  = GetDebugId
|arguments            = [[Integer]] scopeLength = 4
|arguments            = [[Integer]] ''scopeLength = 4''
|returns              = [[String]] debugIg
|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 Roblox.
|object              = Global
|object              = Global

Revision as of 01:38, 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 Roblox.
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.