Google Stackdriver Debugger PHP Sample Application
Description
This simple Slim application demonstrates how to install and run the Stackdriver Debugger Agent for PHP.
Build and Run
- Add the Stackdriver Debugger composer package to your
composer.json:
$ composer require google/cloud-debugger:^0.1
- Install the composer package:
- Install the PHP extension from PECL:
$ pecl install stackdriver_debugger-alpha
- Run the Stackdriver Debugger daemon:
$ vendor/bin/google-cloud-debugger .
- Run the AsyncBatchDaemon daemon:
$ vendor/bin/google-cloud-batch daemon
- Run the application:
$ IS_BATCH_DAEMON_RUNNING=true php -S localhost:8000 -t web/
- Navigate to the Google Cloud Debugger console and Select Source Code
- Set a snapshot or set a logpoint.
See Setting Up Stackdriver Debugger for PHP for more information.
Contributing changes
- See CONTRIBUTING.md
Licensing
- See LICENSE