GetDebugName()

From Valve Developer Community

Returns the targetname of the entity as a string. If there isn't one, returns the classname.