2017 © Pedro Peláez
 

library debugger

Phalcon Debug toolbar

image

phalcon-tools/debugger

Phalcon Debug toolbar

  • Monday, September 14, 2015
  • by andre
  • Repository
  • 1 Watchers
  • 2 Stars
  • 333 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 12 Versions
  • 4 % Grown

The README.md

Phalcon Debug Widget

Requirements

  • PHP: v5.5.0+
  • Phalcon: v2.0+

Installation

Include it in your composer.json file, (*1)

{
    "require-dev": {
        "phalcon-tools/debugger": "dev-master"
    }
}

Usage and Configuration

Define a debug or environment flag in your application bootstrap file so you can easily disable the Phalcon Debug Widget on production environments. e.g., (*2)

define('PHALCON_DEBUG', true);

After you have setup your \Phalcon\Loader and \Phalcon\DI\FactoryDefault() create a new instance of the debug widget., (*3)

if (PHALCON_DEBUG == true) {
    $debugWidget = new \Phalcon\Debug\DebugWidget($di);
}

That's it! The Phalcon debug widget should appear along the bottom of your application!, (*4)

How it works

The debug widget for now is very simplistic, however can be useful. It expects you have three services in your dependency injector named:, (*5)

  • db
  • dispatcher
  • view

It expects these services to match the Phalcon services of the same name., (*6)

When you pass the DI to Phalcon Debug Widget It looks for those specific services and does the following:, (*7)

  • Sets them as shared services
  • Sets the eventManager for them
  • Attaches itself to those events

This means passing the DI to the debug widget will alter those services. Generally speaking, a shared db, dispatcher, and view is fine. If you have ideas for other ways to hook in, please open an issue for discussion., (*8)

The Phalcon Debug Widget is designed to make development easier by displaying debugging information directly in your browser window. Currently it displays php globals such as $_SESSION as well as outputing resource usage and database queries and connection information., (*9)

Preview

Preview of the available debug panels, (*10)

Server View

, (*11)

Views View

, (*12)

Database View

, (*13)

Request View

, (*14)

The Versions

14/09 2015

dev-master

9999999-dev

Phalcon Debug toolbar

  Sources   Download

MIT

The Requires

 

14/09 2015

dev-develop

dev-develop

Phalcon Debug toolbar

  Sources   Download

MIT

The Requires

 

14/09 2015

1.0.3

1.0.3.0

Phalcon Debug toolbar

  Sources   Download

MIT

The Requires

 

14/09 2015

1.0.2

1.0.2.0

Phalcon Debug toolbar

  Sources   Download

MIT

The Requires

 

14/09 2015

1.0.1

1.0.1.0

Phalcon Debug toolbar

  Sources   Download

MIT

The Requires

 

14/09 2015

1.0.0

1.0.0.0

Phalcon Debug toolbar

  Sources   Download

MIT

The Requires

 

04/09 2015

0.0.6

0.0.6.0

Phalcon Debug toolbar

  Sources   Download

MIT

The Requires

 

04/09 2015

0.0.5

0.0.5.0

Phalcon Debug toolbar

  Sources   Download

MIT

The Requires

 

04/09 2015

0.0.4

0.0.4.0

Phalcon Debug toolbar

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

04/09 2015

0.0.3

0.0.3.0

Phalcon Debug toolbar

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

22/04 2015

0.0.2

0.0.2.0

Phalcon debug toolbar

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Dmitry Samotoy

22/04 2015

0.0.1

0.0.1.0

Phalcon debug toolbar

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Dmitry Samotoy