# Devtools - EventrixDebugger

You can use debugger with [eventrix-devtools](https://github.com/mprzodala/eventrix-devtools) (chrome extension) or only print data in browser console.&#x20;

![Eventrix devtools chrome extension](https://2888558338-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdJ2D_ZoCGjUY2YrBin%2F-MdOSa1aL3yxk2PTLDHE%2F-MdOTaNcgnTVB-gufhIz%2FZrzut%20ekranu%20z%202021-06-29%2022-33-05.png?alt=media\&token=197bbf1f-2876-4947-b188-bfff8c418986)

{% tabs %}
{% tab title="Javascript" %}
```javascript
import { Eventrix, EventrixDebugger } from 'eventrix'

const eventrix = new Eventrix({});

const eDebugger = new EventrixDebugger(eventrix);
eDebugger.start();

export default eventrix;
```
{% endtab %}
{% endtabs %}

Now all emitted events and state changes will be saved in debugger. You can print this info in console or use [eventrix-devtools](https://github.com/mprzodala/eventrix-devtools).

#### Debugger methods:

| Method                             | Description                                |
| ---------------------------------- | ------------------------------------------ |
| start()                            | start listen on events and state changes   |
| stop()                             | stop listen on events and state changes    |
| reset()                            | reset state history and events history     |
| getEventsReceiversCount(eventName) | get count of receivers registered on event |
| getEventListenersCount(eventName)  | get count of listeners registered on event |
| getState()                         | get eventrix current state                 |
| getStateHistory()                  | get state changes history                  |
| getEventsHistory()                 | get emitted events history                 |
| printEventsHistory()               | print events history in console table      |
| printStateHistory()                | print state history in console table       |
