GetDebugId (Function): Difference between revisions
From Goodblox Wiki
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{CatUp|Functions}} | |||
{{Locked}} | {{Locked}} | ||
Revision as of 02:43, 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.