# 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 %}
