DEBUG_PROPERTY_NAME

Name of the property that controls coroutine debugging.

Debugging facilities

In debug mode every coroutine is assigned a unique consecutive identifier. Every thread that executes a coroutine has its name modified to include the name and identifier of the currently running coroutine.

Enable debugging facilities with "kotlinx.coroutines.debug" (DEBUG_PROPERTY_NAME) system property, use the following values:

Coroutine name can be explicitly assigned using CoroutineName context element. The string "coroutine" is used as a default name.

Debugging facilities are implemented by newCoroutineContext function that is used in all coroutine builders to create context of a new coroutine.