> For the complete documentation index, see [llms.txt](https://magehook.gitbook.io/magehook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magehook.gitbook.io/magehook/debugging.md).

# Debugging

## Default tasks when hooks are not been dispatched

* Verify if the module is enabled within the Stores Configuration
* Verify if the webhook is not in concept or disable mode
* Verify if the webhook is not constraint to one specific deployment mode (prefer: Independent)
* Verify if the hookHttpRequest queue consumer runs (optionally run: bin/magento queue:consumer:run hookHttpRequest)

### Xdebug breakpoints

#### Validate method, URI and options

{% code title="vendor/guzzlehttp/guzzle/src/Client.php" %}

```php
public function requestAsync($method, $uri = '', array $options = [])
{
    // Validate whether all variables meet the expectation.
    $request = new Psr7\Request($method, $uri, $headers, $body, $version);
}
```

{% endcode %}

#### Found event webhooks

{% code title="vendor/magehook/hook/Event/Observer/Dispatcher.php" %}

```php
public function execute(FrameworkObserver $observer): void
{
    // Look into the result of getListByName.
    $hooks = $this->webhookRepository->getListByName($observer->getWebhook()->getName());
}
```

{% endcode %}
