GetDebugId (Function): Difference between revisions
From Goodblox Wiki
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{CatUp|Functions}} | |||
{{Locked}} | {{Locked}} | ||
Line 5: | Line 6: | ||
|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 | |description = Returns a coded string of the object's DebugId used internally by GoodBlox. | ||
|object = Global | |object = Global | ||
}}</onlyinclude> | }}</onlyinclude> | ||
==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.