Skip to content

Latest commit

 

History

History

debugger

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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

  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