## object = DFrame, Bar, BarLayer, Menu, Button, DFrameStyle, BarStyle, ButtonStyle and MenuStyle: setDebugName

Set the object's name used by error and warning messages of dFrameAPI.

Example

var dFrame = new DFrame(parameters);

dFrame.setDebugName('DFrame added in the left top corner')

### Syntax

object.setTarget(string)

### Parameters

string

The name of the object for error and warning messages.

### Return value

no return value