2017 © Pedro Peláez
 

library chilldebug

Library to do from debug something easy (hopefully)

image

aacp/chilldebug

Library to do from debug something easy (hopefully)

  • Saturday, May 27, 2017
  • by andrescevp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 96 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

ChillDebug

Library to do from debug something easy (hopefully), (*1)

IMPORTANT

This library is WIP., (*2)

Not finished, MUST be improved., (*3)

Feel free to collaborate or give feedback., (*4)

Usage

<?php
include_once(__DIR__ . '/vendor/autoload.php');

function a_test($str)
{
    echo "\nHi: $str";
}

function b_test($str)
{
    echo "\nHi: $str";
}

function c_test($str)
{
    echo "\nHi: $str";
}
$config = new \ChillDebug\Configuration();
$config->dumpDebugFiles = true;
$config->generateHtmlView = true;
//$config->reportsPath = '/ABSOLUTE/PATH/TO/DUMP/FILES';
$debugger = new \ChillDebug\Debugger();

$debugger->enable();

include 'test2.php';

$string = ' friend';
a_test($string);
a_test($a);
a_test(TEST);


$str = "Xdebug";
function ret_ord( $c )
{
    return ord( $c );
}

foreach ( str_split( $str ) as $char )
{
    echo $char, ": ", ret_ord( $char ), "\n";
}

$debugger->disable();

Working with html templates

To register the url handler for phpstorm copy the file phpstorm-url-handler.sh to: /usr/local/bin/phpstorm-url-handler and give execution permissions, (*5)

Register URL handler The last bit is to tell your OS how to handle phpstorm:// URLs. Ideally you set this on the operating system level. I found this article for KDE4 and Gnome. If you do not get things to work, you can also register a custom handler in your browser., (*6)

For firefox, go to about:config and then Right-click -> New -> Boolean -> Name: network.protocol-handler.expose.pstorm -> Value -> false. Then click on a link and select the pstorm-handler script. (If you got the last bit wrong, go to Preferences > Applications and look for pstorm in there)., (*7)

For others: http://stackoverflow.com/questions/7087728/custom-protocol-handler-in-chrome More info: https://askubuntu.com/questions/527166/how-to-set-subl-protocol-handler-with-unity, (*8)

The Versions

27/05 2017

dev-master

9999999-dev

Library to do from debug something easy (hopefully)

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-xdebug >=2.2

 

27/05 2017

1.0

1.0.0.0

Library to do from debug something easy (hopefully)

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-xdebug >=2.2

 

16/05 2017

0.2.3

0.2.3.0

Library to do from debug something easy (hopefully)

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-xdebug >=2.2

 

12/05 2017

0.2.2

0.2.2.0

Library to do from debug something easy (hopefully)

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-xdebug >=2.2

 

12/05 2017

0.2

0.2.0.0

Library to do from debug something easy (hopefully)

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-xdebug >=2.2

 

12/05 2017

0.2.1

0.2.1.0

Library to do from debug something easy (hopefully)

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-xdebug >=2.2

 

23/09 2016

dev-develop

dev-develop

Library to do from debug something easy (hopefully)

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-xdebug >=2.2

 

23/09 2016

0.1.1

0.1.1.0

Library to do from debug something easy (hopefully)

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-xdebug >=2.2

 

22/09 2016

0.1

0.1.0.0

Library to do from debug something easy (hopefully)

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-xdebug >=2.2