Apitte Debug

Debug tools for Apitte, based on Tracy debugger.

Content

Setup

First of all, setup core package.

Install and register debug plugin

composer require apitte/debug
1
api:
    plugins: 
        Apitte\Debug\DI\DebugPlugin:
            debug: %debugMode%
1
2
3
4

Tracy

  • bar panel - displays all router
  • blue screen panel - displays endpoint with invalid schema

Negotiation

If you have negotiation plugin installed then you will be able to use two new suffixes.

With these suffixes you will also be able to see Tracy bar

.debug

  • dumps response
  • example.com/api/v1/users.debug

.debugdata

  • dumps response entity
  • example.com/api/v1/users.debugdata