# EntityManager.EntityManagerDebug

> Provides information and utility functions for debugging.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public readonly struct EntityManager.EntityManagerDebug
```

## Constructors

| Constructor                                                                                                                                 | Description                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [EntityManagerDebug(Unity.Entities.EntityManager)](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/ctor.md) | Creates an EntityManagerDebug from an EntityManager |

## Properties

| Property                                                                                                                        | Description                                                                                                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [EntityCount](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/entitycount.md)                   | The number of entities in the referenced EntityManager                                                                                                                                                                                          |
| [HighestIndexEntity](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/highestindexentity.md)     | The highest entity index of all the entities in the EntityManager                                                                                                                                                                               |
| [MemoryInitPattern](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/memoryinitpattern.md)       | A specified memory pattern used when initializing new chunks if [EntityManager.EntityManagerDebug.UseMemoryInitPattern](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/usememoryinitpattern.md) is set to true |
| [UseMemoryInitPattern](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/usememoryinitpattern.md) | Determines if chunks created in the EntityComponentStore use the specified [EntityManager.EntityManagerDebug.MemoryInitPattern](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/memoryinitpattern.md)           |

## Methods

| Method                                                                                                                                            | Description                                                                                                                                          |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CheckInternalConsistency](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/checkinternalconsistency.md)           | Several checks to ensure that the EntityComponentStore has all references that are expected at this time as well as the expected number of entities. |
| [GetComponentBoxed](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/getcomponentboxed.md)                         | Gets the component object of a given entity based on the type                                                                                        |
| [GetEntityInfo](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/getentityinfo.md)                                 | Creates a string with the information about a given entity including the entity's version, index, and archetype.                                     |
| [IsSharedComponentManagerEmpty](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/issharedcomponentmanagerempty.md) | Checks to see if the world holds any shared component values                                                                                         |
| [LogEntityInfo](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/logentityinfo.md)                                 | Debug logs information about a given entity including the entity's version, index, and archetype                                                     |
| [PoisonUnusedDataInAllChunks](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/poisonunuseddatainallchunks.md)     | Sets all unused chunk data for an archetype to the specified byte value.                                                                             |

## Static Methods

| Method                                                                                                                                        | Description                                                                                                                                      |
| --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| [GetLastWriterSystemName](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/getlastwritersystemname.md)         | Gets the name of the system that last modified the component type of the given chunk                                                             |
| [GetSystemProfilerMarkerName](/engine/7000.0/script-reference/unity/entities/entitymanager/entitymanagerdebug/getsystemprofilermarkername.md) | Returns the name used for the profiler marker of the passed system. This is useful for inspecting profiling data using the ProfilerRecorder API. |
