mlessnau / pry
Installs: 7 776
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
- kevinlebrun/colors.php: 0.*
- nikic/php-parser: 1.0.2
- pear/console_getopt: dev-trunk
- pear/console_table: 1.2.0
- pear/pear: dev-master
- pear/pear_exception: dev-master
- pear/structures_graph: dev-trunk
- pear/text_highlighter: dev-master
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.3
This package is not auto-updated.
Last update: 2017-02-15 08:38:04 UTC
README
Pry is an inline debugging tool for PHP. Just put require PRY;
in your code before running it in the CLI.
Install via Composer
Add the requirement to your composer.json
:
require-dev: { "mlessnau/pry": "0.*" }
And run composer install
.
Usage
Given that you run your PHP code in the CLI or the integrated PHP webserver, put require PRY;
at the location in your PHP script where you want to start an interactive debug session. The next time the code is executed, the execution will be interrupted and you get an interactive shell at the desired location and you can look around and manipulate the code in the scope.