GetDebugId (Function): Difference between revisions

From Goodblox Wiki
Jump to navigationJump to search
(created the page)
 
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{CatUp|Functions}}
{{Locked}}
{{Locked}}


<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 GoodBlox.
|object              = Global
|object              = Global
}}</onlyinclude>
}}</onlyinclude>


'''Example'''
==Example==
<pre>
<pre>
local function debugId(object, scopeLength)
local function debugId(object, scopeLength)

Latest revision as of 20:49, 23 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.