API ParentedObject GetDebugName

Returns the widget object's debug name. path = ParentedObject:GetDebugName

Returns

 * path : string - Debug name of the widget object. This is the shortest path accessible from _G

Details

 * Anonymous frames will show their memory address instead in the path.

Examples
Gets the name from two textures; one is named, one is anonymous. local f = CreateFrame("Frame", "SomeFrame") local named = f:CreateTexture("SomeTex") local unnamed = f:CreateTexture print(named:GetDebugName) -- "SomeTex" print(unnamed:GetDebugName) -- "SomeFrame.1ebfefe5800"

Prints the shortest path from _G instead of  /dump CharacterFrame.portrait:GetDebugName -- "CharacterFramePortrait"

Returns an empty string for anonymous frames. /dump CreateFrame("Frame"):GetDebugName -- ""