Dephpugger

Dephpugger

  • Docs
  • About Us

›Configuration

Dephpugger

  • About

Installation

  • Dependencies
  • XDebug
  • Composer
  • Browser Plugin
  • Dephpugger

Usage

  • Usage Video Tutorial
  • Running Dephpugger
  • Commands to Run
  • Running for Web
  • Running with PHPUnit

Configuration

  • File Configuration
  • Lumen
  • Laravel
  • Zend Framework 2
  • Symfony
  • Slim
  • Silex
  • Yii2

File Configuration

Configuring in your project

The dephpugger use default values to run. For example, the server run in a port 8888. But there is a way to change theese configurations. The Dephpugger get the default value, and after this, check if exists a file called .dephpugger.yml in root project folder. If this file exists, the values will be replaced for the default configuration.

The defualt configuration is...

    /**
     * Default config that will be replaced by *.dephpugger.yml* file
     */
    private $defaultConfig = [
        'server' => [
            'port' => 8888,
            'host' => 'localhost',
            'phpPath' => 'php',
            'path' => null,
            'file' => '',
        ],
        'debugger' => [
            'port' => 9005,
            'host' => 'localhost',
            'lineOffset' => 6,
            'verboseMode' => false,
            'historyFile' => '.dephpugger_history',
        ],
    ];

Now, you can change the default values creating the file .dephpugger.yml.

--- 
debugger: 
  host: mysocket.dev # default: localhost
  port: 9002 # default: 9005
  lineOffset: 10 # default: 6
  path: ./public/ # default: null
  file: index.php # default: null
  verboseMode: false # default: false
  historyFile: ~/.dephpugger_history # default: .dephpugger_history
server:
  host: myproject.dev # default: localhost
  phpPath: /usr/local/bin/php # default: php
  port: 8080 # default: 8888

Ps: You don't need rewrite every configurations, if you want edit only the port for server, you can create this file.

--- 
server:
  port: 8080

All default configurations will keep the default value and the port now is 8080 instead of 8888.
Now, restart the dephpugger and be happy ;D.

← Running with PHPUnitLumen →
  • Configuring in your project
Dephpugger
Docs
Getting StartedUsageConfiguration Reference
Articles and Videos
How debug Drupal applicationsSingapore PHP User GroupHow debug PHP in terminal
More
BlogGitHubStar
Copyright © 2024 Tacnoman