GetDebugId (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>MrNicNac Description on what a 'debug id' is. |
>MrNicNac Fixed description of DebugId. |
||
Line 4: | Line 4: | ||
|arguments = [[Integer]] ''scopeLength'' | |arguments = [[Integer]] ''scopeLength'' | ||
|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 Roblox. | ||
|protected = yes | |protected = yes | ||
}}</onlyinclude> | }}</onlyinclude> | ||
Line 19: | Line 18: | ||
print(debugId(Workspace, math.huge)) --> 12 | print(debugId(Workspace, math.huge)) --> 12 | ||
</pre>}} | </pre>}} | ||
== 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 Roblox act like processes and each run instructions (or 'code') that can be debugged if needed. | |||
[[Category:Methods]] | [[Category:Methods]] |
Revision as of 22:20, 2 January 2011
Stub This article is a stub. If you think you know more about this than we do, please help us by contacting a writer. Thank you! |
GetDebugId( Integer scopeLength ) | |
Returns | String debugId |
Description: | Returns a coded string of the object's DebugId used internally by Roblox. |
Member of: |
Example
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 Roblox act like processes and each run instructions (or 'code') that can be debugged if needed.