Add debugging section to README

This commit is contained in:
Kai S. K. Engelbart 2021-11-24 10:37:21 +01:00
parent e67b64678b
commit ad29a93ccb
Signed by: Käfer & Engelbart Git
GPG Key ID: 70F2F9206EDC1FCE

View File

@ -159,6 +159,17 @@ The same applies when an exception event handler throws an exception.
To avoid this, system events never cause system events and instead just issue a warning to the logger.
## Debugging
In more complex setups, taking a look at the event handler execution order can be helpful for debugging.
Event Bus offers a method for this purpose which can be used as follows:
```java
System.out.println(EventBus.getInstance().printExecutionOrder(SimpleEvent.class));
```
Then, the execution order can be inspected in the console.
## Installation
Event Bus is available in Maven Central.