php-docs-samples/debugger/README.md at php72-scripts · gogasca/php-docs-samples · GitHub
Skip to content

Latest commit

 

History

History
55 lines (45 loc) · 1.53 KB

File metadata and controls

55 lines (45 loc) · 1.53 KB

Google Stackdriver Debugger PHP Sample Application

Description

This simple Silex application demonstrates how to install and run the Stackdriver Debugger Agent for PHP.

Build and Run

  1. Add the Stackdriver Debugger composer package to your composer.json:
    $ composer require google/cloud-debugger:^0.1
  1. Install the composer package:
    $ composer install
  1. Install the PHP extension from PECL:
    $ pecl install stackdriver_debugger-alpha
  1. Run the Stackdriver Debugger daemon:
    $ vendor/bin/google-cloud-debugger .
  1. Run the AsyncBatchDaemon daemon:
    $ vendor/bin/google-cloud-batch daemon
  1. Run the application:
    $ IS_BATCH_DAEMON_RUNNING=true php -S localhost:8000 -t web/
  1. Navigate to the Google Cloud Debugger console and Select Source Code
  2. Set a snapshot or set a logpoint.

See Setting Up Stackdriver Debugger for PHP for more information.

Contributing changes

Licensing